end of the search.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140121
138bc75d-0d04-0410-961f-
82ee72b054a4
+2008-09-08 Eric Botcazou <ebotcazou@adacore.com>
+
+ * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
+ end of the search.
+
2008-09-08 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
* crx/crx.h (IRA_COVER_CLASSES): Define.
}
if (best_cost >= 0)
{
- slot = &ira_spilled_reg_stack_slots[best_slot_num];
+ slot_num = best_slot_num;
+ slot = &ira_spilled_reg_stack_slots[slot_num];
SET_REGNO_REG_SET (&slot->spilled_regs, regno);
x = slot->mem;
- ALLOCNO_HARD_REGNO (allocno) = -best_slot_num - 2;
+ ALLOCNO_HARD_REGNO (allocno) = -slot_num - 2;
}
}
if (x != NULL_RTX)