Commit c4fd10e7 by Richard Kenner

(canon_hash): Use HOST_WIDE_INT instead of int when casting pointers

to integers.

From-SVN: r1750
parent ab176425
...@@ -1817,12 +1817,12 @@ canon_hash (x, mode) ...@@ -1817,12 +1817,12 @@ canon_hash (x, mode)
/* Assume there is only one rtx object for any given label. */ /* Assume there is only one rtx object for any given label. */
case LABEL_REF: case LABEL_REF:
/* Use `and' to ensure a positive number. */ /* Use `and' to ensure a positive number. */
return (hash + ((int) LABEL_REF << 7) return (hash + ((HOST_WIDE_INT) LABEL_REF << 7)
+ ((int) XEXP (x, 0) & ((1 << HASHBITS) - 1))); + ((HOST_WIDE_INT) XEXP (x, 0) & ((1 << HASHBITS) - 1)));
case SYMBOL_REF: case SYMBOL_REF:
return (hash + ((int) SYMBOL_REF << 7) return (hash + ((HOST_WIDE_INT) SYMBOL_REF << 7)
+ ((int) XEXP (x, 0) & ((1 << HASHBITS) - 1))); + ((HOST_WIDE_INT) XEXP (x, 0) & ((1 << HASHBITS) - 1)));
case MEM: case MEM:
if (MEM_VOLATILE_P (x)) if (MEM_VOLATILE_P (x))
......
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