summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-06-02 22:22:52 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-06-02 22:22:52 +0000
commiteef4a60326a7929def9be8f4bccbf69e96752917 (patch)
treea6145ebec5483abce1bc5d21d21df428f2f98274 /gcc/optabs.c
parent77ec4307409a0cda1a8feb4d2e5853cde6ec584e (diff)
downloadgcc-eef4a60326a7929def9be8f4bccbf69e96752917.tar.gz
re PR middle-end/44291 (ICE in set_user_assembler_libfunc)
2010-06-03 Richard Guenther <rguenther@suse.de> PR middle-end/44291 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE. (set_user_assembler_libfunc): Likewise. From-SVN: r160197
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 52b4cb9fa85..e022114a0e3 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -6083,7 +6083,7 @@ init_one_libfunc (const char *name)
/* See if we have already created a libfunc decl for this function. */
id = get_identifier (name);
- hash = htab_hash_string (name);
+ hash = IDENTIFIER_HASH_VALUE (id);
slot = htab_find_slot_with_hash (libfunc_decls, id, hash, INSERT);
decl = (tree) *slot;
if (decl == NULL)
@@ -6106,7 +6106,7 @@ set_user_assembler_libfunc (const char *name, const char *asmspec)
hashval_t hash;
id = get_identifier (name);
- hash = htab_hash_string (name);
+ hash = IDENTIFIER_HASH_VALUE (id);
slot = htab_find_slot_with_hash (libfunc_decls, id, hash, NO_INSERT);
gcc_assert (slot);
decl = (tree) *slot;