This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch installed to zap more bcopy calls


Zapped two more bcopy calls.  Bootstrapped on solaris2.7, not
regressions, installed.

		--Kaveh


Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.9630
diff -u -p -r1.9630 ChangeLog
--- ChangeLog	2001/03/26 13:56:32	1.9630
+++ ChangeLog	2001/03/26 16:57:40
@@ -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.
Index: combine.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/combine.c,v
retrieving revision 1.193
diff -u -p -r1.193 combine.c
--- combine.c	2001/03/22 18:48:27	1.193
+++ combine.c	2001/03/26 16:57:44
@@ -1998,8 +1998,8 @@ try_combine (i3, i2, i1, new_direct_jump
 	  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
 	{
Index: genattrtab.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genattrtab.c,v
retrieving revision 1.88
diff -u -p -r1.88 genattrtab.c
--- genattrtab.c	2001/03/06 09:52:31	1.88
+++ genattrtab.c	2001/03/26 16:57:46
@@ -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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]