Commit 66cc270e by Richard Guenther Committed by Richard Biener

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
parent 05927e0d
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
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment