re PR target/32963 (ICE in failed_reload, could not find a spill register)

PR target/32963
	caller-save.c (reg_save_code): Set invalide status on restore code.

From-SVN: r127523
This commit is contained in:
Steve Ellcey 2007-08-15 20:08:43 +00:00 committed by Steve Ellcey
parent 336e494f86
commit f81e79b5b4
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-08-15 Steve Ellcey <sje@cup.hp.com>
PR target/32963
* caller-save.c (reg_save_code): Set invalide status on restore code.
2007-08-15 Diego Novillo <dnovillo@google.com>
* tree-ssa-alias.c (compute_memory_partitions): Use

View File

@ -113,6 +113,7 @@ reg_save_code (int reg, enum machine_mode mode)
if (!HARD_REGNO_MODE_OK (reg, mode))
{
cached_reg_save_code[reg][mode] = -1;
cached_reg_restore_code[reg][mode] = -1;
return -1;
}
@ -124,6 +125,7 @@ reg_save_code (int reg, enum machine_mode mode)
/* Force re-recognition of the modified insns. */
INSN_CODE (saveinsn) = -1;
INSN_CODE (restinsn) = -1;
cached_reg_save_code[reg][mode] = recog_memoized (saveinsn);
cached_reg_restore_code[reg][mode] = recog_memoized (restinsn);