From 7c5b92c45918f8070db926d4004b4f9ce89a4830 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Tue, 27 Mar 2001 03:37:03 +0000 Subject: [PATCH] * sbitmap.c (sbitmap_copy): Call memcpy, not bcopy. From-SVN: r40862 --- gcc/ChangeLog | 4 ++++ gcc/sbitmap.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4dbf3a12405..51c4dbdc927 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-03-26 Kaveh R. Ghazi + + * sbitmap.c (sbitmap_copy): Call memcpy, not bcopy. + 2001-03-27 Alan Modra * except.c (eh_regs): Save results of build_pointer_type to a temp diff --git a/gcc/sbitmap.c b/gcc/sbitmap.c index e03cd0442c3..eb1bf5a2575 100644 --- a/gcc/sbitmap.c +++ b/gcc/sbitmap.c @@ -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. */ -- 2.30.2