Commit d3aa398e by Jeff Law Committed by Jeff Law

reload1.c (fixup_eh_region_notes): Remove write-only "trap_count" variable.

	* reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
	variable.

From-SVN: r145459
parent 83f0ccb8
2009-04-02 Jeff Law <law@redhat.com>
* reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
variable.
2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
* configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
......
......@@ -4086,26 +4086,17 @@ static void
fixup_eh_region_note (rtx insn, rtx prev, rtx next)
{
rtx note = find_reg_note (insn, REG_EH_REGION, NULL_RTX);
unsigned int trap_count;
rtx i;
if (note == NULL)
return;
if (may_trap_p (PATTERN (insn)))
trap_count = 1;
else
{
remove_note (insn, note);
trap_count = 0;
}
if (! may_trap_p (PATTERN (insn)))
remove_note (insn, note);
for (i = NEXT_INSN (prev); i != next; i = NEXT_INSN (i))
if (INSN_P (i) && i != insn && may_trap_p (PATTERN (i)))
{
trap_count++;
add_reg_note (i, REG_EH_REGION, XEXP (note, 0));
}
add_reg_note (i, REG_EH_REGION, XEXP (note, 0));
}
/* Reload pseudo-registers into hard regs around each insn as needed.
......
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