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

2009-10-06  Richard Guenther  <rguenther@suse.de>

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

From-SVN: r152491
This commit is contained in:
Richard Guenther 2009-10-06 12:19:20 +00:00 committed by Richard Biener
parent 05927e0d43
commit 66cc270e92
2 changed files with 5 additions and 1 deletions

View 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

View 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