Commit 6456e26e by Richard Guenther Committed by Richard Biener

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
parent fa36ce9c
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> 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
* c-decl.c: Don't include gimple.h. * c-decl.c: Don't include gimple.h.
......
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> 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
* options.c (set_Wall): Remove special logic for Wuninitialized * options.c (set_Wall): Remove special logic for Wuninitialized
......
...@@ -3374,7 +3374,7 @@ module_htab_decls_hash (const void *x) ...@@ -3374,7 +3374,7 @@ module_htab_decls_hash (const void *x)
const_tree n = DECL_NAME (t); const_tree n = DECL_NAME (t);
if (n == NULL_TREE) if (n == NULL_TREE)
n = TYPE_NAME (TREE_TYPE (t)); n = TYPE_NAME (TREE_TYPE (t));
return htab_hash_string (IDENTIFIER_POINTER (n)); return IDENTIFIER_HASH_VALUE (n);
} }
static int static int
......
...@@ -81,7 +81,7 @@ lto_symtab_entry_hash (const void *p) ...@@ -81,7 +81,7 @@ lto_symtab_entry_hash (const void *p)
{ {
const struct lto_symtab_entry_def *base = const struct lto_symtab_entry_def *base =
(const struct lto_symtab_entry_def *) p; (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 /* Return non-zero if P1 and P2 points to lto_symtab_entry_def structs
......
...@@ -6032,7 +6032,7 @@ static GTY ((param_is (union tree_node))) htab_t libfunc_decls; ...@@ -6032,7 +6032,7 @@ static GTY ((param_is (union tree_node))) htab_t libfunc_decls;
static hashval_t static hashval_t
libfunc_decl_hash (const void *entry) 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 static int
......
...@@ -365,7 +365,7 @@ emutls_decl (tree decl) ...@@ -365,7 +365,7 @@ emutls_decl (tree decl)
/* Note that we use the hash of the decl's name, rather than a hash /* 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 of the decl's pointer. In emutls_finish we iterate through the
hash table, and we want this traversal to be predictable. */ 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; in.base.from = decl;
loc = htab_find_slot_with_hash (emutls_htab, &in, in.hash, INSERT); loc = htab_find_slot_with_hash (emutls_htab, &in, in.hash, INSERT);
h = (struct tree_map *) *loc; h = (struct tree_map *) *loc;
......
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