diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2000-11-07 22:50:06 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2000-11-07 22:50:06 +0000 |
commit | 961192e1dd8305d932281fdc7efdc3276ad70e94 (patch) | |
tree | 179de27582e6da82f3f181cff6a30ad0be3b8ba0 /gcc/java | |
parent | 0b13d6c243fe61b580f9bc62047d2e0ec88b8513 (diff) | |
download | gcc-961192e1dd8305d932281fdc7efdc3276ad70e94.tar.gz |
alias.c [...] (init_alias_analysis, [...]): Use memset () instead of bzero ().
* alias.c (init_alias_analysis), calls.c (expand_call,
emit_library_call_value_1), combine.c (init_reg_last_arrays),
cse.c (new_basic_block), dbxout.c (dbxout_type), diagnostic.c
(init_output_buffer, set_diagnostic_context), dwarf2out.c
(equate_decl_number_to_die, build_abbrev_table), emit-rtl.c
(init_emit_once), fold-const.c (mul_double, div_and_round_double),
function.c (assign_parms), gcse.c (compute_can_copy,
alloc_gcse_mem, alloc_reg_set_mem, record_one_set,
compute_hash_table, compute_set_hash_table,
compute_expr_hash_table), genattrtab.c (optimize_attrs), global.c
(global_alloc, global_conflicts), haifa-sched.c (compute_trg_info,
clear_units, schedule_block), integrate.c (initialize_for_inline,
expand_inline_function), jump.c (thread_jumps), local-alloc.c
(local_alloc), loop.c (combine_movables, count_loop_regs_set,
load_mems_and_recount_loop_regs_set), print-tree.c (debug_tree),
regclass.c (init_reg_sets, init_reg_sets_1, regclass,
record_reg_classes, allocate_reg_info), reload.c
(get_secondary_mem, remove_address_replacements, find_reloads),
reload1.c (reload, set_initial_label_offsets, finish_spills,
reload_as_needed, choose_reload_regs_init,
reload_cse_simplify_operands), reorg.c (dbr_schedule), sbitmap.c
(sbitmap_zero), simplify-rtx.c (simplify_plus_minus), ssa.c
(rename_registers), stmt.c (expand_end_case), unroll.c
(unroll_loop), varray.c (varray_grow), objc/objc-act.c: Use memset
() instead of bzero ().
ch:
* actions.c (check_missing_cases), typeck.c (build_chill_slice,
build_chill_cast): Use memset () instead of bzero ().
cp:
* class.c (duplicate_tag_error, build_vtbl_initializer), decl.c
(push_binding_level), error.c (cp_tree_printer), pt.c
(process_partial_specialization, tsubst_template_arg_vector),
search.c (lookup_member): Use memset () instead of bzero ().
java:
* expr.c (note_instructions), jcf-io.c (find_class), jcf-parse.c
(init_outgoing_cpool), lex.c (java_init_lex): Use memset ()
instead of bzero ().
From-SVN: r37303
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/java/expr.c | 2 | ||||
-rw-r--r-- | gcc/java/jcf-io.c | 2 | ||||
-rw-r--r-- | gcc/java/jcf-parse.c | 2 | ||||
-rw-r--r-- | gcc/java/lex.c | 4 |
5 files changed, 11 insertions, 5 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 46fe17d1df2..f4eff5346c3 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,9 @@ +2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk> + + * expr.c (note_instructions), jcf-io.c (find_class), jcf-parse.c + (init_outgoing_cpool), lex.c (java_init_lex): Use memset () + instead of bzero (). + 2000-11-05 Tom Tromey <tromey@cygnus.com> * lex.h (JAVA_FLOAT_RANGE_ERROR): Typo fix. diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 286fa6a7ba3..2d592299f30 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -2507,7 +2507,7 @@ note_instructions (jcf, method) JCF_SEEK (jcf, DECL_CODE_OFFSET (method)); byte_ops = jcf->read_ptr; instruction_bits = xrealloc (instruction_bits, length + 1); - bzero (instruction_bits, length + 1); + memset (instruction_bits, 0, length + 1); /* This pass figures out which PC can be the targets of jumps. */ for (PC = 0; PC < length;) diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index db192082881..03ea7d75acf 100644 --- a/gcc/java/jcf-io.c +++ b/gcc/java/jcf-io.c @@ -319,7 +319,7 @@ DEFUN(find_class, (classname, classname_length, jcf, source_ok), null pointer when we're copying it below. */ int buflen = jcf_path_max_len () + classname_length + 10; char *buffer = (char *) ALLOC (buflen); - bzero (buffer, buflen); + memset (buffer, 0, buflen); java_buffer = (char *) alloca (buflen); diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index 30fc4a4b526..090120a1c6c 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -648,7 +648,7 @@ init_outgoing_cpool () { current_constant_pool_data_ref = NULL_TREE; outgoing_cpool = (struct CPool *)xmalloc (sizeof (struct CPool)); - bzero (outgoing_cpool, sizeof (struct CPool)); + memset (outgoing_cpool, 0, sizeof (struct CPool)); } static void diff --git a/gcc/java/lex.c b/gcc/java/lex.c index be1fcf8e76f..1b8898c604c 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -115,8 +115,8 @@ java_init_lex (finput, encoding) CPC_INITIALIZER_LIST (ctxp) = CPC_STATIC_INITIALIZER_LIST (ctxp) = CPC_INSTANCE_INITIALIZER_LIST (ctxp) = ctxp->incomplete_class = NULL_TREE; - bzero ((PTR) ctxp->modifier_ctx, 11*sizeof (ctxp->modifier_ctx[0])); - bzero ((PTR) current_jcf, sizeof (JCF)); + memset ((PTR) ctxp->modifier_ctx, 0, 11*sizeof (ctxp->modifier_ctx[0])); + memset ((PTR) current_jcf, 0, sizeof (JCF)); ctxp->current_parsed_class = NULL; ctxp->package = NULL_TREE; #endif |