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:
parent
05927e0d43
commit
66cc270e92
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user