* sbitmap.c (sbitmap_copy): Call memcpy, not bcopy.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue, 27 Mar 2001 03:37:03 +0000 (03:37 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 27 Mar 2001 03:37:03 +0000 (03:37 +0000)
From-SVN: r40862

gcc/ChangeLog
gcc/sbitmap.c

index 4dbf3a1..51c4dbd 100644 (file)
@@ -1,3 +1,7 @@
+2001-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * sbitmap.c (sbitmap_copy): Call memcpy, not bcopy.
+
 2001-03-27  Alan Modra  <alan@linuxcare.com.au>
 
        * except.c (eh_regs): Save results of build_pointer_type to a temp
index e03cd04..eb1bf5a 100644 (file)
@@ -96,8 +96,7 @@ void
 sbitmap_copy (dst, src)
      sbitmap dst, src;
 {
-  bcopy ((PTR) src->elms, (PTR) dst->elms,
-        sizeof (SBITMAP_ELT_TYPE) * dst->size);
+  memcpy (dst->elms, src->elms, sizeof (SBITMAP_ELT_TYPE) * dst->size);
 }
 
 /* Zero all elements in a bitmap.  */