]> gcc.gnu.org Git - gcc.git/commitdiff
reload1.c (fixup_eh_region_notes): Remove write-only "trap_count" variable.
authorJeff Law <law@redhat.com>
Thu, 2 Apr 2009 17:04:32 +0000 (11:04 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 2 Apr 2009 17:04:32 +0000 (11:04 -0600)
* reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
variable.

From-SVN: r145459

gcc/ChangeLog
gcc/reload1.c

index 6ba2785f545899c17d4c0bcc4871c0345c5da4ec..a2544459fae1157a863482425cfda6b9487ff733 100644 (file)
@@ -1,3 +1,8 @@
+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.
index fcf0bd3fc4d3588e290fb12dc69a7d623762e0ef..180c394b421a95e9fb4ccb78ed70a74d5c37a2ae 100644 (file)
@@ -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.
This page took 0.114748 seconds and 5 git commands to generate.