diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-03-10 21:45:40 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-03-10 21:45:40 +0000 |
commit | 6439a1f2046eabe1ada6fc14f428e85f71369189 (patch) | |
tree | ff4dd92b0a5616ecc9195f4d6f9f948b69244ff4 /gcc/config/vax/vax.c | |
parent | b3e68a792254d5e814e1f2797d66c7581dd63198 (diff) | |
download | gcc-6439a1f2046eabe1ada6fc14f428e85f71369189.zip gcc-6439a1f2046eabe1ada6fc14f428e85f71369189.tar.gz gcc-6439a1f2046eabe1ada6fc14f428e85f71369189.tar.bz2 |
alpha.c (check_float_value): Use memcpy, not bcopy.
* alpha.c (check_float_value): Use memcpy, not bcopy.
* m32r.c (m32r_sched_reorder): Likewise.
* vax.c (check_float_value): Likewise.
From-SVN: r40370
Diffstat (limited to 'gcc/config/vax/vax.c')
-rw-r--r-- | gcc/config/vax/vax.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index 38c86f0..f64b470 100644 --- a/gcc/config/vax/vax.c +++ b/gcc/config/vax/vax.c @@ -625,7 +625,7 @@ check_float_value (mode, d, overflow) if (overflow) { - bcopy ((char *) &float_values[0], (char *) d, sizeof (REAL_VALUE_TYPE)); + memcpy (d, &float_values[0], sizeof (REAL_VALUE_TYPE)); return 1; } @@ -635,26 +635,24 @@ check_float_value (mode, d, overflow) memcpy (&r, d, sizeof (REAL_VALUE_TYPE)); if (REAL_VALUES_LESS (float_values[0], r)) { - bcopy ((char *) &float_values[0], (char *) d, - sizeof (REAL_VALUE_TYPE)); + memcpy (d, &float_values[0], sizeof (REAL_VALUE_TYPE)); return 1; } else if (REAL_VALUES_LESS (r, float_values[1])) { - bcopy ((char *) &float_values[1], (char*) d, - sizeof (REAL_VALUE_TYPE)); + memcpy (d, &float_values[1], sizeof (REAL_VALUE_TYPE)); return 1; } else if (REAL_VALUES_LESS (dconst0, r) && REAL_VALUES_LESS (r, float_values[2])) { - bcopy ((char *) &dconst0, (char *) d, sizeof (REAL_VALUE_TYPE)); + memcpy (d, &dconst0, sizeof (REAL_VALUE_TYPE)); return 1; } else if (REAL_VALUES_LESS (r, dconst0) && REAL_VALUES_LESS (float_values[3], r)) { - bcopy ((char *) &dconst0, (char *) d, sizeof (REAL_VALUE_TYPE)); + memcpy (d, &dconst0, sizeof (REAL_VALUE_TYPE)); return 1; } } |