From: Jeff Law Date: Thu, 2 Apr 2009 17:04:32 +0000 (-0600) Subject: reload1.c (fixup_eh_region_notes): Remove write-only "trap_count" variable. X-Git-Tag: releases/gcc-4.5.0~6939 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=d3aa398ec49d1a2e7f5938a39d257d312cdfd494;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6ba2785f5458..a2544459fae1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-04-02 Jeff Law + + * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count" + variable. + 2009-04-02 H.J. Lu * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2. diff --git a/gcc/reload1.c b/gcc/reload1.c index fcf0bd3fc4d3..180c394b421a 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.