diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-05-23 19:12:13 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-05-23 19:12:13 -0400 |
commit | 848a42b9af6cb1f1ac124c6e58b3a016cd808311 (patch) | |
tree | f45cf91ac57580e11b649eb103575d9c5133435d /gcc | |
parent | 74028528e3abf619e9f7a6cb1a77f633c07369e2 (diff) | |
download | gcc-848a42b9af6cb1f1ac124c6e58b3a016cd808311.zip gcc-848a42b9af6cb1f1ac124c6e58b3a016cd808311.tar.gz gcc-848a42b9af6cb1f1ac124c6e58b3a016cd808311.tar.bz2 |
(hash_rtx): Avoid warning on int-to-pointer conversion.
(output_fpops): Cast args to bcopy to char *.
From-SVN: r9789
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/romp/romp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/config/romp/romp.c b/gcc/config/romp/romp.c index 65293cd..3c9019a0 100644 --- a/gcc/config/romp/romp.c +++ b/gcc/config/romp/romp.c @@ -1442,11 +1442,11 @@ hash_rtx (x) if (fmt[i] == 'e') hash += hash_rtx (XEXP (x, i)); else if (fmt[i] == 'u') - hash += (int) XEXP (x, i); + hash += (unsigned HOST_WIDE_INT) XEXP (x, i); else if (fmt[i] == 'i') hash += XINT (x, i); else if (fmt[i] == 's') - hash += (int) XSTR (x, i); + hash += (unsigned HOST_WIDE_INT) XSTR (x, i); return hash; } @@ -1952,7 +1952,8 @@ output_fpops (file) { union real_extract u; - bcopy (&CONST_DOUBLE_LOW (immed[i]), &u, sizeof u); + bcopy ((char *) &CONST_DOUBLE_LOW (immed[i]), + (char *) &u, sizeof u); if (GET_MODE (immed[i]) == DFmode) ASM_OUTPUT_DOUBLE (file, u.d); else |