mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 09:44:57 +08:00
decl.c (typename_hash): Use htab_hash_pointer.
cp: * decl.c (typename_hash): Use htab_hash_pointer. gcc: * fold-const.c (size_htab_hash): Use htab_hash_pointer. * function.c (insns_for_mem_hash): Likewise. * varasm.c (STRHASH): Likewise. java: * class.c (JAVA_TREEHASHHASH_H): Use htab_hash_pointer. From-SVN: r58036
This commit is contained in:
parent
46081bb341
commit
7bdfd72e8d
@ -1,3 +1,9 @@
|
||||
2002-10-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* fold-const.c (size_htab_hash): Use htab_hash_pointer.
|
||||
* function.c (insns_for_mem_hash): Likewise.
|
||||
* varasm.c (STRHASH): Likewise.
|
||||
|
||||
2002-10-10 Stuart Hastings <stuart@apple.com>
|
||||
|
||||
* cse.c (struct cse_reg_info): Add subreg_ticked.
|
||||
|
@ -1,3 +1,7 @@
|
||||
2002-10-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* decl.c (typename_hash): Use htab_hash_pointer.
|
||||
|
||||
2002-10-10 Jim Wilson <wilson@redhat.com>
|
||||
|
||||
* decl.c (duplicate_decls): Don't call decl_attributes.
|
||||
|
@ -5516,8 +5516,8 @@ typename_hash (k)
|
||||
hashval_t hash;
|
||||
tree t = (tree) k;
|
||||
|
||||
hash = (((hashval_t) TYPE_CONTEXT (t))
|
||||
^ ((hashval_t) DECL_NAME (TYPE_NAME (t))));
|
||||
hash = (htab_hash_pointer (TYPE_CONTEXT (t))
|
||||
^ htab_hash_pointer (DECL_NAME (TYPE_NAME (t))));
|
||||
|
||||
return hash;
|
||||
}
|
||||
|
@ -1346,7 +1346,7 @@ size_htab_hash (x)
|
||||
tree t = (tree) x;
|
||||
|
||||
return (TREE_INT_CST_HIGH (t) ^ TREE_INT_CST_LOW (t)
|
||||
^ (hashval_t) ((long) TREE_TYPE (t) >> 3)
|
||||
^ htab_hash_pointer (TREE_TYPE (t))
|
||||
^ (TREE_OVERFLOW (t) << 20));
|
||||
}
|
||||
|
||||
|
@ -3281,7 +3281,7 @@ insns_for_mem_hash (k)
|
||||
{
|
||||
/* Use the address of the key for the hash value. */
|
||||
struct insns_for_mem_entry *m = (struct insns_for_mem_entry *) k;
|
||||
return (hashval_t) m->key;
|
||||
return htab_hash_pointer (m->key);
|
||||
}
|
||||
|
||||
/* Return nonzero if K1 and K2 (two REGs) are the same. */
|
||||
|
@ -1,3 +1,7 @@
|
||||
2002-10-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* class.c (JAVA_TREEHASHHASH_H): Use htab_hash_pointer.
|
||||
|
||||
2002-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* parse.y (merge_string_cste): Add parentheses around & within |.
|
||||
|
@ -2269,7 +2269,7 @@ static int java_treetreehash_compare PARAMS ((const void *, const void *));
|
||||
|
||||
/* A hash table mapping trees to trees. Used generally. */
|
||||
|
||||
#define JAVA_TREEHASHHASH_H(t) ((hashval_t) (t))
|
||||
#define JAVA_TREEHASHHASH_H(t) (htab_hash_pointer (t))
|
||||
|
||||
static hashval_t
|
||||
java_treetreehash_hash (k_p)
|
||||
|
@ -2209,7 +2209,7 @@ static GTY(()) struct constant_descriptor_tree *
|
||||
they are actually used. This will be if something takes its address or if
|
||||
there is a usage of the string in the RTL of a function. */
|
||||
|
||||
#define STRHASH(x) ((hashval_t) ((long) (x) >> 3))
|
||||
#define STRHASH(x) htab_hash_pointer (x)
|
||||
|
||||
struct deferred_string GTY(())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user