aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-03-26 01:48:51 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-03-26 01:48:51 +0000
commit730e15561d35b15a74b45688d40c9639e077dbca (patch)
tree6b883b48ad099b4300499d50d53577f4236b37ce /gcc/cp/decl.c
parenteb40d6b94a706837f4fa87106b60fb1aa2aaa4f4 (diff)
downloadgcc-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.c14
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;