Commit 848a42b9 by Richard Kenner

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

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

From-SVN: r9789
parent 74028528
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment