aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2000-11-07 22:50:06 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2000-11-07 22:50:06 +0000
commit961192e1dd8305d932281fdc7efdc3276ad70e94 (patch)
tree179de27582e6da82f3f181cff6a30ad0be3b8ba0 /gcc/objc
parent0b13d6c243fe61b580f9bc62047d2e0ec88b8513 (diff)
downloadgcc-961192e1dd8305d932281fdc7efdc3276ad70e94.zip
gcc-961192e1dd8305d932281fdc7efdc3276ad70e94.tar.gz
gcc-961192e1dd8305d932281fdc7efdc3276ad70e94.tar.bz2
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/objc')
-rw-r--r--gcc/objc/objc-act.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 5bb4fcd..bea5844 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -3627,7 +3627,7 @@ error_with_ivar (message, decl, rawdecl)
fprintf (stderr, "%s:%d: ",
DECL_SOURCE_FILE (decl), DECL_SOURCE_LINE (decl));
- bzero (errbuf, BUFSIZE);
+ memset (errbuf, 0, BUFSIZE);
fprintf (stderr, "%s `%s'\n", message, gen_declaration (rawdecl, errbuf));
}
@@ -4740,7 +4740,7 @@ build_keyword_selector (selector)
}
buf = (char *)alloca (len + 1);
- bzero (buf, len + 1);
+ memset (buf, 0, len + 1);
for (key_chain = selector; key_chain; key_chain = TREE_CHAIN (key_chain))
{
@@ -4979,7 +4979,7 @@ build_message_expr (mess)
/* Allow any type that matches objc_class_type. */
&& ! comptypes (rtype, objc_class_type))
{
- bzero (errbuf, BUFSIZE);
+ memset (errbuf, 0, BUFSIZE);
warning ("invalid receiver type `%s'",
gen_declaration (rtype, errbuf));
}
@@ -7079,7 +7079,7 @@ warn_with_method (message, mtype, method)
fprintf (stderr, "%s:%d: warning: ",
DECL_SOURCE_FILE (method), DECL_SOURCE_LINE (method));
- bzero (errbuf, BUFSIZE);
+ memset (errbuf, 0, BUFSIZE);
fprintf (stderr, "%s `%c%s'\n",
message, mtype, gen_method_decl (method, errbuf));
}
@@ -8088,7 +8088,7 @@ dump_interface (fp, chain)
fprintf (fp, "{\n");
do
{
- bzero (buf, 256);
+ memset (buf, 0, 256);
fprintf (fp, "\t%s;\n", gen_declaration (ivar_decls, buf));
ivar_decls = TREE_CHAIN (ivar_decls);
}
@@ -8098,14 +8098,14 @@ dump_interface (fp, chain)
while (nst_methods)
{
- bzero (buf, 256);
+ memset (buf, 0, 256);
fprintf (fp, "- %s;\n", gen_method_decl (nst_methods, buf));
nst_methods = TREE_CHAIN (nst_methods);
}
while (cls_methods)
{
- bzero (buf, 256);
+ memset (buf, 0, 256);
fprintf (fp, "+ %s;\n", gen_method_decl (cls_methods, buf));
cls_methods = TREE_CHAIN (cls_methods);
}
@@ -8501,7 +8501,7 @@ objc_debug (fp)
if (TREE_CODE (loop) == FUNCTION_DECL && DECL_INITIAL (loop))
{
/* We have a function definition: generate prototype. */
- bzero (errbuf, BUFSIZE);
+ memset (errbuf, 0, BUFSIZE);
gen_declaration (loop, errbuf);
fprintf (fp, "%s;\n", errbuf);
}
@@ -8521,7 +8521,7 @@ objc_debug (fp)
fprintf (fp, "\n\nnst_method_hash_list[%d]:\n", i);
do
{
- bzero (buf, 256);
+ memset (buf, 0, 256);
fprintf (fp, "-%s;\n", gen_method_decl (hashlist->key, buf));
hashlist = hashlist->next;
}
@@ -8536,7 +8536,7 @@ objc_debug (fp)
fprintf (fp, "\n\ncls_method_hash_list[%d]:\n", i);
do
{
- bzero (buf, 256);
+ memset (buf, 0, 256);
fprintf (fp, "-%s;\n", gen_method_decl (hashlist->key, buf));
hashlist = hashlist->next;
}