diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2000-11-03 18:55:54 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2000-11-03 18:55:54 +0000 |
commit | da61dec94bb88a1f29a984ad3a311a83f696e751 (patch) | |
tree | 4cb28c9deaf8fa480ffad4062b24bc022b087a25 /gcc/c-decl.c | |
parent | def3263a3364034c8cd6cd865975529f9fd80e69 (diff) | |
download | gcc-da61dec94bb88a1f29a984ad3a311a83f696e751.zip gcc-da61dec94bb88a1f29a984ad3a311a83f696e751.tar.gz gcc-da61dec94bb88a1f29a984ad3a311a83f696e751.tar.bz2 |
Use memset/memcmp instead of bzero/bcmp.
* c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c
(dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks,
perm_calloc, get_identifier, maybe_get_identifier,
real_value_from_int_cst, simple_cst_equal), varasm.c
(assemble_name, assemble_real, immed_real_const_1,
compare_constant_1, decode_rtx_const, output_constant_pool): Use
strrchr () instead of rindex (). Use memcmp () instead of bcmp
(). Use memcpy () instead of bcopy (). Use memset () instead of
bzero ().
cp:
* tree.c (cp_tree_equal): Use memcmp () instead of bcmp ().
From-SVN: r37228
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index f86cb89..2bbfd46 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -2054,9 +2054,9 @@ duplicate_decls (newdecl, olddecl, different_binding_level) { register unsigned olddecl_uid = DECL_UID (olddecl); - bcopy ((char *) newdecl + sizeof (struct tree_common), - (char *) olddecl + sizeof (struct tree_common), - sizeof (struct tree_decl) - sizeof (struct tree_common)); + memcpy ((char *) olddecl + sizeof (struct tree_common), + (char *) newdecl + sizeof (struct tree_common), + sizeof (struct tree_decl) - sizeof (struct tree_common)); DECL_UID (olddecl) = olddecl_uid; } @@ -7006,8 +7006,8 @@ copy_lang_decl (decl) return; ld = (struct lang_decl *) ggc_alloc (sizeof (struct lang_decl)); - bcopy ((char *)DECL_LANG_SPECIFIC (decl), (char *)ld, - sizeof (struct lang_decl)); + memcpy ((char *) ld, (char *) DECL_LANG_SPECIFIC (decl), + sizeof (struct lang_decl)); DECL_LANG_SPECIFIC (decl) = ld; } |