diff options
author | Richard Guenther <rguenther@suse.de> | 2010-05-16 14:47:38 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-05-16 14:47:38 +0000 |
commit | 6456e26e2cd7f182ad6e8650e15799324c4b4173 (patch) | |
tree | 3a3ab8d63f27f74010d3d4b98f99414f615e514d /gcc | |
parent | fa36ce9c63a6a7531df13300a41483ac7e3268fa (diff) | |
download | gcc-6456e26e2cd7f182ad6e8650e15799324c4b4173.zip gcc-6456e26e2cd7f182ad6e8650e15799324c4b4173.tar.gz gcc-6456e26e2cd7f182ad6e8650e15799324c4b4173.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/fortran/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/fortran/trans-decl.c | 2 | ||||
-rw-r--r-- | gcc/lto-symtab.c | 2 | ||||
-rw-r--r-- | gcc/optabs.c | 2 | ||||
-rw-r--r-- | gcc/varasm.c | 2 |
6 files changed, 14 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bd58462..3f913c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index a8879ac..386c90f 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -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 diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c index 56c88bc..3216f68 100644 --- a/gcc/fortran/trans-decl.c +++ b/gcc/fortran/trans-decl.c @@ -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 diff --git a/gcc/lto-symtab.c b/gcc/lto-symtab.c index f8a244c..28e9aa3 100644 --- a/gcc/lto-symtab.c +++ b/gcc/lto-symtab.c @@ -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 diff --git a/gcc/optabs.c b/gcc/optabs.c index 5a3e610..cf5873b 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -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 diff --git a/gcc/varasm.c b/gcc/varasm.c index 15ff1b3..5fb57dc 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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; |