lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.

2010-05-16  Richard Guenther  <rguenther@suse.de>

	* lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
	* optabs.c (libfunc_decl_hash): Likewise.
	* varasm.c (emutls_decl): Likewise.

	fortran/
	* trans-decl.c (module_htab_decls_hash): Use IDENTIFIER_HASH_VALUE.

From-SVN: r159455
This commit is contained in:
Richard Guenther 2010-05-16 14:47:38 +00:00 committed by Richard Biener
parent fa36ce9c63
commit 6456e26e2c
6 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2010-05-16 Richard Guenther <rguenther@suse.de>
* lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
* optabs.c (libfunc_decl_hash): Likewise.
* varasm.c (emutls_decl): Likewise.
2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
* c-decl.c: Don't include gimple.h.

View File

@ -1,3 +1,7 @@
2010-05-16 Richard Guenther <rguenther@suse.de>
* trans-decl.c (module_htab_decls_hash): Use IDENTIFIER_HASH_VALUE.
2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
* options.c (set_Wall): Remove special logic for Wuninitialized

View File

@ -3374,7 +3374,7 @@ module_htab_decls_hash (const void *x)
const_tree n = DECL_NAME (t);
if (n == NULL_TREE)
n = TYPE_NAME (TREE_TYPE (t));
return htab_hash_string (IDENTIFIER_POINTER (n));
return IDENTIFIER_HASH_VALUE (n);
}
static int

View File

@ -81,7 +81,7 @@ lto_symtab_entry_hash (const void *p)
{
const struct lto_symtab_entry_def *base =
(const struct lto_symtab_entry_def *) p;
return htab_hash_string (IDENTIFIER_POINTER (base->id));
return IDENTIFIER_HASH_VALUE (base->id);
}
/* Return non-zero if P1 and P2 points to lto_symtab_entry_def structs

View File

@ -6032,7 +6032,7 @@ static GTY ((param_is (union tree_node))) htab_t libfunc_decls;
static hashval_t
libfunc_decl_hash (const void *entry)
{
return htab_hash_string (IDENTIFIER_POINTER (DECL_NAME ((const_tree) entry)));
return IDENTIFIER_HASH_VALUE (DECL_NAME ((const_tree) entry));
}
static int

View File

@ -365,7 +365,7 @@ emutls_decl (tree decl)
/* Note that we use the hash of the decl's name, rather than a hash
of the decl's pointer. In emutls_finish we iterate through the
hash table, and we want this traversal to be predictable. */
in.hash = htab_hash_string (IDENTIFIER_POINTER (name));
in.hash = IDENTIFIER_HASH_VALUE (name);
in.base.from = decl;
loc = htab_find_slot_with_hash (emutls_htab, &in, in.hash, INSERT);
h = (struct tree_map *) *loc;