diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1992-08-29 22:41:36 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1992-08-29 22:41:36 -0400 |
commit | d98c1e3389cc03653227bed93936da165dc4ac1c (patch) | |
tree | 34d8555d62b14b9d0c9f410e98bfaf8bfcb92efc | |
parent | 4a96984737a74d730d1775f9e2e84046dec9fab7 (diff) | |
download | gcc-d98c1e3389cc03653227bed93936da165dc4ac1c.zip gcc-d98c1e3389cc03653227bed93936da165dc4ac1c.tar.gz gcc-d98c1e3389cc03653227bed93936da165dc4ac1c.tar.bz2 |
(RTL_HASH, attr_rtx): Avoid warnings by casting pointers to
HOST_WIDE_INT instead of int.
From-SVN: r1996
-rw-r--r-- | gcc/genattrtab.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index f32965d..68a6f86 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -409,7 +409,7 @@ struct attr_hash *attr_hash_table[RTL_HASH_SIZE]; /* Here is how primitive or already-shared RTL's hash codes are made. */ -#define RTL_HASH(RTL) ((int) (RTL) & 0777777) +#define RTL_HASH(RTL) ((HOST_WIDE_INT) (RTL) & 0777777) /* Add an entry to the hash table for RTL with hash code HASHCODE. */ @@ -489,7 +489,7 @@ attr_rtx (va_alist) return rt_val; } - hashcode = ((int) code + RTL_HASH (arg0)); + hashcode = ((HOST_WIDE_INT) code + RTL_HASH (arg0)); for (h = attr_hash_table[hashcode % RTL_HASH_SIZE]; h; h = h->next) if (h->hashcode == hashcode && GET_CODE (h->u.rtl) == code @@ -520,7 +520,7 @@ attr_rtx (va_alist) return rt_val; } - hashcode = ((int) code + RTL_HASH (arg0) + RTL_HASH (arg1)); + hashcode = ((HOST_WIDE_INT) code + RTL_HASH (arg0) + RTL_HASH (arg1)); for (h = attr_hash_table[hashcode % RTL_HASH_SIZE]; h; h = h->next) if (h->hashcode == hashcode && GET_CODE (h->u.rtl) == code @@ -544,7 +544,7 @@ attr_rtx (va_alist) if (code == SYMBOL_REF) arg0 = attr_string (arg0, strlen (arg0)); - hashcode = ((int) code + RTL_HASH (arg0)); + hashcode = ((HOST_WIDE_INT) code + RTL_HASH (arg0)); for (h = attr_hash_table[hashcode % RTL_HASH_SIZE]; h; h = h->next) if (h->hashcode == hashcode && GET_CODE (h->u.rtl) == code @@ -565,7 +565,7 @@ attr_rtx (va_alist) char *arg0 = va_arg (p, char *); char *arg1 = va_arg (p, char *); - hashcode = ((int) code + RTL_HASH (arg0) + RTL_HASH (arg1)); + hashcode = ((HOST_WIDE_INT) code + RTL_HASH (arg0) + RTL_HASH (arg1)); for (h = attr_hash_table[hashcode % RTL_HASH_SIZE]; h; h = h->next) if (h->hashcode == hashcode && GET_CODE (h->u.rtl) == code |