]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
authorRichard Guenther <rguenther@suse.de>
Sun, 16 May 2010 14:47:38 +0000 (14:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 16 May 2010 14:47:38 +0000 (14:47 +0000)
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

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

index bd584628f5117fef45f5336133c2a029d6542be2..3f913c6a83f1aea7267e9663cb68490483dc153f 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 a8879acb460971ef37fb919d1ac267ef63ca38ef..386c90f38828dbb945189ee4428c9a70023b2e12 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 56c88bc69f88aaa9b312fe41a203b20b21c7f94f..3216f68b59d8985c22ae5cd75101800e0257d6a2 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 f8a244cbeecebdecca0797ef1206d131274f0740..28e9aa3eebd551b4f3c482d70bbe79b58bbe83f8 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 5a3e61092b978694b632c00499312054490903bc..cf5873b1b33d0632f272a8f884e0b00467a8a85d 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 15ff1b3c212f993b84e3b4bac1b91e6f6af46598..5fb57dcdda7676c3e53d4d769af91097e35df7d3 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;