]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
authorRichard Guenther <rguenther@suse.de>
Tue, 6 Oct 2009 12:19:20 +0000 (12:19 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 6 Oct 2009 12:19:20 +0000 (12:19 +0000)
2009-10-06  Richard Guenther  <rguenther@suse.de>

* lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.

From-SVN: r152491

gcc/ChangeLog
gcc/lto-symtab.c

index 78230e8a52062372a9ce196e3e48965adc931e94..1c4d93e8ccf486bfcb4df502a1e61ae7658f6282 100644 (file)
@@ -1,3 +1,7 @@
+2009-10-06  Richard Guenther  <rguenther@suse.de>
+
+       * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
+
 2009-10-06  Tobias Burnus  <burnus@net-b.de>
 
        PR lto/41591
index bb3183c80f6fe30729855468caed5f436e9e4629..600f75b41e763219b10401b06b9bd8d6c59d9f9a 100644 (file)
@@ -66,7 +66,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_pointer (base->id);
+  return htab_hash_string (IDENTIFIER_POINTER (base->id));
 }
 
 /* Return non-zero if P1 and P2 points to lto_symtab_entry_def structs