diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-03-26 01:48:51 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-03-26 01:48:51 +0000 |
commit | 730e15561d35b15a74b45688d40c9639e077dbca (patch) | |
tree | 6b883b48ad099b4300499d50d53577f4236b37ce /gcc/cp/decl.c | |
parent | eb40d6b94a706837f4fa87106b60fb1aa2aaa4f4 (diff) | |
download | gcc-730e15561d35b15a74b45688d40c9639e077dbca.zip gcc-730e15561d35b15a74b45688d40c9639e077dbca.tar.gz gcc-730e15561d35b15a74b45688d40c9639e077dbca.tar.bz2 |
class.c (add_method): Use memcpy/memmove, not bcopy.
* class.c (add_method): Use memcpy/memmove, not bcopy.
* decl.c (duplicate_decls): Likewise.
From-SVN: r40835
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 4794f65..04d4c4f 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3722,9 +3722,9 @@ duplicate_decls (newdecl, olddecl) function_size = sizeof (struct tree_decl); - bcopy ((char *) newdecl + sizeof (struct tree_common), - (char *) olddecl + sizeof (struct tree_common), - function_size - sizeof (struct tree_common)); + memcpy ((char *) olddecl + sizeof (struct tree_common), + (char *) newdecl + sizeof (struct tree_common), + function_size - sizeof (struct tree_common)); if (DECL_TEMPLATE_INSTANTIATION (newdecl)) { @@ -3760,10 +3760,10 @@ duplicate_decls (newdecl, olddecl) } else { - bcopy ((char *) newdecl + sizeof (struct tree_common), - (char *) olddecl + sizeof (struct tree_common), - sizeof (struct tree_decl) - sizeof (struct tree_common) - + tree_code_length [(int)TREE_CODE (newdecl)] * sizeof (char *)); + memcpy ((char *) olddecl + sizeof (struct tree_common), + (char *) newdecl + sizeof (struct tree_common), + sizeof (struct tree_decl) - sizeof (struct tree_common) + + tree_code_length [(int)TREE_CODE (newdecl)] * sizeof (char *)); } DECL_UID (olddecl) = olddecl_uid; |