aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-08-09 23:57:32 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-08-09 23:57:32 +0000
commiteefc2c6e85ee0a62e659d0bf7d9000bbb8d06620 (patch)
tree3cb804a804e42db60ad34dd76748471e77d98970 /gcc
parent0070eeda6575ef675615ddf51bf52b441a415297 (diff)
downloadgcc-eefc2c6e85ee0a62e659d0bf7d9000bbb8d06620.zip
gcc-eefc2c6e85ee0a62e659d0bf7d9000bbb8d06620.tar.gz
gcc-eefc2c6e85ee0a62e659d0bf7d9000bbb8d06620.tar.bz2
Warning fix:
* real.c (GET_REAL, PUT_REAL): Use memcpy instead of bcopy. From-SVN: r28636
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/real.c16
2 files changed, 12 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5128c7b..7a2ef15 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Mon Aug 9 19:54:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * real.c (GET_REAL, PUT_REAL): Use memcpy instead of bcopy.
+
Mon Aug 9 19:36:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* tree.h (lang_identify): Constify a char*.
diff --git a/gcc/real.c b/gcc/real.c
index 6594bd8..c7c2db7 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -281,10 +281,10 @@ do { \
else \
{ \
unsigned EMUSHORT w[4]; \
- bcopy (((EMUSHORT *) r), &w[3], sizeof (EMUSHORT)); \
- bcopy (((EMUSHORT *) r) + 1, &w[2], sizeof (EMUSHORT)); \
- bcopy (((EMUSHORT *) r) + 2, &w[1], sizeof (EMUSHORT)); \
- bcopy (((EMUSHORT *) r) + 3, &w[0], sizeof (EMUSHORT)); \
+ memcpy (&w[3], ((EMUSHORT *) r), sizeof (EMUSHORT)); \
+ memcpy (&w[2], ((EMUSHORT *) r) + 1, sizeof (EMUSHORT)); \
+ memcpy (&w[1], ((EMUSHORT *) r) + 2, sizeof (EMUSHORT)); \
+ memcpy (&w[0], ((EMUSHORT *) r) + 3, sizeof (EMUSHORT)); \
e53toe (w, (e)); \
} \
} while (0)
@@ -297,10 +297,10 @@ do { \
{ \
unsigned EMUSHORT w[4]; \
etoe53 ((e), w); \
- bcopy (&w[3], ((EMUSHORT *) r), sizeof (EMUSHORT)); \
- bcopy (&w[2], ((EMUSHORT *) r) + 1, sizeof (EMUSHORT)); \
- bcopy (&w[1], ((EMUSHORT *) r) + 2, sizeof (EMUSHORT)); \
- bcopy (&w[0], ((EMUSHORT *) r) + 3, sizeof (EMUSHORT)); \
+ memcpy (((EMUSHORT *) r), &w[3], sizeof (EMUSHORT)); \
+ memcpy (((EMUSHORT *) r) + 1, &w[2], sizeof (EMUSHORT)); \
+ memcpy (((EMUSHORT *) r) + 2, &w[1], sizeof (EMUSHORT)); \
+ memcpy (((EMUSHORT *) r) + 3, &w[0], sizeof (EMUSHORT)); \
} \
} while (0)