Commit d69c4bd1 by Richard Kenner

(TYPE_HASH): Use HOST_WIDE_INT instead of int when casting pointers to

integers.

From-SVN: r1752
parent 66b4c3ad
...@@ -35,8 +35,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -35,8 +35,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h" #include "config.h"
#include <stdio.h> #include <stdio.h>
#include "flags.h" #include "flags.h"
#include "function.h"
#include "tree.h" #include "tree.h"
#include "function.h"
#include "obstack.h" #include "obstack.h"
#include "gvarargs.h" #include "gvarargs.h"
...@@ -2291,7 +2291,7 @@ struct type_hash *type_hash_table[TYPE_HASH_SIZE]; ...@@ -2291,7 +2291,7 @@ struct type_hash *type_hash_table[TYPE_HASH_SIZE];
/* Here is how primitive or already-canonicalized types' hash /* Here is how primitive or already-canonicalized types' hash
codes are made. */ codes are made. */
#define TYPE_HASH(TYPE) ((int) (TYPE) & 0777777) #define TYPE_HASH(TYPE) ((HOST_WIDE_INT) (TYPE) & 0777777)
/* Compute a hash code for a list of types (chain of TREE_LIST nodes /* Compute a hash code for a list of types (chain of TREE_LIST nodes
with types in the TREE_VALUE slots), by adding the hash codes with types in the TREE_VALUE slots), by adding the hash codes
......
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