Commit eef4a603 by Richard Guenther Committed by Richard Biener

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
parent 77ec4307
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.
2010-06-02 Steven Bosscher <steven@gcc.gnu.org> 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
* mkconfig.sh: Include insn-flags.h and insn-constants.h before * mkconfig.sh: Include insn-flags.h and insn-constants.h before
......
...@@ -6083,7 +6083,7 @@ init_one_libfunc (const char *name) ...@@ -6083,7 +6083,7 @@ init_one_libfunc (const char *name)
/* See if we have already created a libfunc decl for this function. */ /* See if we have already created a libfunc decl for this function. */
id = get_identifier (name); 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); slot = htab_find_slot_with_hash (libfunc_decls, id, hash, INSERT);
decl = (tree) *slot; decl = (tree) *slot;
if (decl == NULL) if (decl == NULL)
...@@ -6106,7 +6106,7 @@ set_user_assembler_libfunc (const char *name, const char *asmspec) ...@@ -6106,7 +6106,7 @@ set_user_assembler_libfunc (const char *name, const char *asmspec)
hashval_t hash; hashval_t hash;
id = get_identifier (name); 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); slot = htab_find_slot_with_hash (libfunc_decls, id, hash, NO_INSERT);
gcc_assert (slot); gcc_assert (slot);
decl = (tree) *slot; decl = (tree) *slot;
......
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