From 66cc270e926b01c27d6c527df6d9b3a6caf5de25 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 6 Oct 2009 12:19:20 +0000 Subject: [PATCH] lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers. 2009-10-06 Richard Guenther * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers. From-SVN: r152491 --- gcc/ChangeLog | 4 ++++ gcc/lto-symtab.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 78230e8a520..1c4d93e8ccf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2009-10-06 Richard Guenther + + * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers. + 2009-10-06 Tobias Burnus PR lto/41591 diff --git a/gcc/lto-symtab.c b/gcc/lto-symtab.c index bb3183c80f6..600f75b41e7 100644 --- a/gcc/lto-symtab.c +++ b/gcc/lto-symtab.c @@ -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