diff options
author | Richard Guenther <rguenther@suse.de> | 2009-10-06 12:19:20 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-10-06 12:19:20 +0000 |
commit | 66cc270e926b01c27d6c527df6d9b3a6caf5de25 (patch) | |
tree | 87995ee552382fcb3ed2c404449a0e6a849e0bb2 /gcc/lto-symtab.c | |
parent | 05927e0d43f9355d7f9fcdb2058d23977a25c680 (diff) | |
download | gcc-66cc270e926b01c27d6c527df6d9b3a6caf5de25.tar.gz |
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
Diffstat (limited to 'gcc/lto-symtab.c')
-rw-r--r-- | gcc/lto-symtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |