aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-03-26 16:59:23 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-03-26 16:59:23 +0000
commitd38a30c995c5d7abf7112f68c56a6f70d1e94019 (patch)
tree4e43f480ff38b940c69fd4080f409f62252f2d57
parentcc2e591b48e51df008d4e09d1f67f1195f8cbeb5 (diff)
downloadgcc-d38a30c995c5d7abf7112f68c56a6f70d1e94019.zip
gcc-d38a30c995c5d7abf7112f68c56a6f70d1e94019.tar.gz
gcc-d38a30c995c5d7abf7112f68c56a6f70d1e94019.tar.bz2
combine.c (try_combine): Use memcpy, not bcopy.
* combine.c (try_combine): Use memcpy, not bcopy. * genattrtab.c (expand_units): Likewise. From-SVN: r40849
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/combine.c4
-rw-r--r--gcc/genattrtab.c4
3 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 477517c..200f042 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2001-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * combine.c (try_combine): Use memcpy, not bcopy.
+
+ * genattrtab.c (expand_units): Likewise.
+
Mon Mar 26 15:55:08 CEST 2001 Jan Hubicka <jh@suse.cz>
* i386.md (push mem DI peep2): New.
diff --git a/gcc/combine.c b/gcc/combine.c
index 723f9a9..4a148b9 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -1998,8 +1998,8 @@ try_combine (i3, i2, i1, new_direct_jump_p)
rtvec old = XVEC (newpat, 0);
total_sets = XVECLEN (newpat, 0) + added_sets_1 + added_sets_2;
newpat = gen_rtx_PARALLEL (VOIDmode, rtvec_alloc (total_sets));
- bcopy ((char *) &old->elem[0], (char *) XVEC (newpat, 0)->elem,
- sizeof (old->elem[0]) * old->num_elem);
+ memcpy (XVEC (newpat, 0)->elem, &old->elem[0],
+ sizeof (old->elem[0]) * old->num_elem);
}
else
{
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c
index aecd27c..b749e97 100644
--- a/gcc/genattrtab.c
+++ b/gcc/genattrtab.c
@@ -2010,8 +2010,8 @@ expand_units ()
* sizeof (struct function_unit_op *));
for (unit = units, i = 0; unit; i += unit->num_opclasses, unit = unit->next)
- bcopy ((char *) unit_ops[unit->num], (char *) &op_array[i],
- unit->num_opclasses * sizeof (struct function_unit_op *));
+ memcpy (&op_array[i], unit_ops[unit->num],
+ unit->num_opclasses * sizeof (struct function_unit_op *));
/* Compute the ready cost function for each unit by computing the
condition for each non-default value. */