From 848a42b9af6cb1f1ac124c6e58b3a016cd808311 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 23 May 1995 19:12:13 -0400 Subject: (hash_rtx): Avoid warning on int-to-pointer conversion. (output_fpops): Cast args to bcopy to char *. From-SVN: r9789 --- gcc/config/romp/romp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc') 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 -- cgit v1.1