Commit 99b96649 by Eric Botcazou Committed by Eric Botcazou

ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the end of the search.

	* ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
	end of the search.

From-SVN: r140121
parent b344d949
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> 2008-09-08 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
* crx/crx.h (IRA_COVER_CLASSES): Define. * crx/crx.h (IRA_COVER_CLASSES): Define.
......
...@@ -2728,10 +2728,11 @@ ira_reuse_stack_slot (int regno, unsigned int inherent_size, ...@@ -2728,10 +2728,11 @@ ira_reuse_stack_slot (int regno, unsigned int inherent_size,
} }
if (best_cost >= 0) 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); SET_REGNO_REG_SET (&slot->spilled_regs, regno);
x = slot->mem; x = slot->mem;
ALLOCNO_HARD_REGNO (allocno) = -best_slot_num - 2; ALLOCNO_HARD_REGNO (allocno) = -slot_num - 2;
} }
} }
if (x != NULL_RTX) if (x != NULL_RTX)
......
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