mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 07:24:32 +08:00
combine.c (try_combine): Use memcpy, not bcopy.
* combine.c (try_combine): Use memcpy, not bcopy. * genattrtab.c (expand_units): Likewise. From-SVN: r40849
This commit is contained in:
parent
cc2e591b48
commit
d38a30c995
@ -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>
|
Mon Mar 26 15:55:08 CEST 2001 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
* i386.md (push mem DI peep2): New.
|
* i386.md (push mem DI peep2): New.
|
||||||
|
@ -1998,8 +1998,8 @@ try_combine (i3, i2, i1, new_direct_jump_p)
|
|||||||
rtvec old = XVEC (newpat, 0);
|
rtvec old = XVEC (newpat, 0);
|
||||||
total_sets = XVECLEN (newpat, 0) + added_sets_1 + added_sets_2;
|
total_sets = XVECLEN (newpat, 0) + added_sets_1 + added_sets_2;
|
||||||
newpat = gen_rtx_PARALLEL (VOIDmode, rtvec_alloc (total_sets));
|
newpat = gen_rtx_PARALLEL (VOIDmode, rtvec_alloc (total_sets));
|
||||||
bcopy ((char *) &old->elem[0], (char *) XVEC (newpat, 0)->elem,
|
memcpy (XVEC (newpat, 0)->elem, &old->elem[0],
|
||||||
sizeof (old->elem[0]) * old->num_elem);
|
sizeof (old->elem[0]) * old->num_elem);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2010,8 +2010,8 @@ expand_units ()
|
|||||||
* sizeof (struct function_unit_op *));
|
* sizeof (struct function_unit_op *));
|
||||||
|
|
||||||
for (unit = units, i = 0; unit; i += unit->num_opclasses, unit = unit->next)
|
for (unit = units, i = 0; unit; i += unit->num_opclasses, unit = unit->next)
|
||||||
bcopy ((char *) unit_ops[unit->num], (char *) &op_array[i],
|
memcpy (&op_array[i], unit_ops[unit->num],
|
||||||
unit->num_opclasses * sizeof (struct function_unit_op *));
|
unit->num_opclasses * sizeof (struct function_unit_op *));
|
||||||
|
|
||||||
/* Compute the ready cost function for each unit by computing the
|
/* Compute the ready cost function for each unit by computing the
|
||||||
condition for each non-default value. */
|
condition for each non-default value. */
|
||||||
|
Loading…
Reference in New Issue
Block a user