diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-02 17:04:32 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-02 17:04:32 +0000 |
commit | 1c2a5380f922f42a00a504f44bf0a729f8fd4dc9 (patch) | |
tree | 8dca28ed28f18336548038796cf8c57707181a28 /gcc/reload1.c | |
parent | 1301d11086d21b258bcc32c416967a18216cca71 (diff) | |
download | gcc-1c2a5380f922f42a00a504f44bf0a729f8fd4dc9.tar.gz |
* reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
variable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145459 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index fcf0bd3fc4d..180c394b421 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. |