aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2009-04-02 11:04:32 -0600
committerJeff Law <law@gcc.gnu.org>2009-04-02 11:04:32 -0600
commitd3aa398ec49d1a2e7f5938a39d257d312cdfd494 (patch)
tree8dca28ed28f18336548038796cf8c57707181a28 /gcc/reload1.c
parent83f0ccb8c190e3015486fe74be4793ae76477d2c (diff)
downloadgcc-d3aa398ec49d1a2e7f5938a39d257d312cdfd494.zip
gcc-d3aa398ec49d1a2e7f5938a39d257d312cdfd494.tar.gz
gcc-d3aa398ec49d1a2e7f5938a39d257d312cdfd494.tar.bz2
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
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index fcf0bd3..180c394 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -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.