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
This commit is contained in:
Richard Guenther 2010-06-02 22:22:52 +00:00 committed by Richard Biener
parent 77ec430740
commit eef4a60326
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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>
* mkconfig.sh: Include insn-flags.h and insn-constants.h before

View File

@ -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;