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 rid toplev.c of bcopy


I installed the following patch to toplev.c to eliminate the remaining
call in there to bcopy.  Bootstrapped on solaris2.7, no regressions.

		--Kaveh

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.9627
diff -u -p -r1.9627 ChangeLog
--- ChangeLog	2001/03/25 15:15:38	1.9627
+++ ChangeLog	2001/03/26 02:35:55
@@ -1,3 +1,7 @@
+2001-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* toplev.c (set_float_handler): Use memcpy, not bcopy.
+
 2001-03-25  Kazu Hirata  <kazu@hxi.com>
 
 	* config/h8300/h8300.md (umodqi3): Output a tab instead of a
Index: toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.439
diff -u -p -r1.439 toplev.c
--- toplev.c	2001/03/22 18:48:32	1.439
+++ toplev.c	2001/03/26 02:35:57
@@ -1660,7 +1660,7 @@ set_float_handler (handler)
 {
   float_handled = (handler != 0);
   if (handler)
-    bcopy ((char *) handler, (char *) float_handler, sizeof (float_handler));
+    memcpy (float_handler, handler, sizeof (float_handler));
 
   if (float_handled && ! float_handler_set)
     {


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