]> gcc.gnu.org Git - gcc.git/commitdiff
(canon_hash): Use HOST_WIDE_INT instead of int when casting pointers
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 3 Aug 1992 01:38:38 +0000 (21:38 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 3 Aug 1992 01:38:38 +0000 (21:38 -0400)
to integers.

From-SVN: r1750

gcc/cse.c

index 14ef88b4c95239e2f74135524ed5f80082ab2edf..bcff89abdcf8463ae24415f5355f29d60f324a73 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -1817,12 +1817,12 @@ canon_hash (x, mode)
       /* Assume there is only one rtx object for any given label.  */
     case LABEL_REF:
       /* Use `and' to ensure a positive number.  */
-      return (hash + ((int) LABEL_REF << 7)
-             + ((int) XEXP (x, 0) & ((1 << HASHBITS) - 1)));
+      return (hash + ((HOST_WIDE_INT) LABEL_REF << 7)
+             + ((HOST_WIDE_INT) XEXP (x, 0) & ((1 << HASHBITS) - 1)));
 
     case SYMBOL_REF:
-      return (hash + ((int) SYMBOL_REF << 7)
-             + ((int) XEXP (x, 0) & ((1 << HASHBITS) - 1)));
+      return (hash + ((HOST_WIDE_INT) SYMBOL_REF << 7)
+             + ((HOST_WIDE_INT) XEXP (x, 0) & ((1 << HASHBITS) - 1)));
 
     case MEM:
       if (MEM_VOLATILE_P (x))
This page took 0.065937 seconds and 5 git commands to generate.