reload1.c (choose_reload_regs): Set reload_spill_index for regs chosen during find_reloads.

* reload1.c (choose_reload_regs): Set reload_spill_index for regs
	chosen during find_reloads.

From-SVN: r126415
This commit is contained in:
Bernd Schmidt 2007-07-06 13:42:26 +00:00 committed by Bernd Schmidt
parent de8b1dca2f
commit 374d961c0d
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-07-06 Bernd Schmidt <bernd.schmidt@analog.com>
* reload1.c (choose_reload_regs): Set reload_spill_index for regs
chosen during find_reloads.
2007-07-06 Richard Guenther <rguenther@suse.de>
* gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over

View File

@ -5633,7 +5633,14 @@ choose_reload_regs (struct insn_chain *chain)
for (j = 0; j < n_reloads; j++)
{
reload_order[j] = j;
reload_spill_index[j] = -1;
if (rld[j].reg_rtx != NULL_RTX)
{
gcc_assert (REG_P (rld[j].reg_rtx)
&& HARD_REGISTER_P (rld[j].reg_rtx));
reload_spill_index[j] = REGNO (rld[j].reg_rtx);
}
else
reload_spill_index[j] = -1;
if (rld[j].nregs > 1)
{