(hash_rtx): Avoid warning on int-to-pointer conversion.

(output_fpops): Cast args to bcopy to char *.

From-SVN: r9789
This commit is contained in:
Richard Kenner 1995-05-23 19:12:13 -04:00
parent 74028528e3
commit 848a42b9af
1 changed files with 4 additions and 3 deletions

View File

@ -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