OSDN Git Service

2010-05-16 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 May 2010 14:47:38 +0000 (14:47 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:09:50 +0000 (14:09 +0900)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159455 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/lto-symtab.c
gcc/optabs.c
gcc/varasm.c

index bd58462..3f913c6 100644 (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.
index a8879ac..386c90f 100644 (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
index 56c88bc..3216f68 100644 (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
index f8a244c..28e9aa3 100644 (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
index 5a3e610..cf5873b 100644 (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
index 15ff1b3..5fb57dc 100644 (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;