jump.c (jump_optimize_1): Don't increment LABEL_NUSES on deleted labels.
authorClinton Popetz <cpopetz@cygnus.com>
Mon, 22 May 2000 22:46:56 +0000 (22:46 +0000)
committerClinton Popetz <cpopetz@gcc.gnu.org>
Mon, 22 May 2000 22:46:56 +0000 (18:46 -0400)
* jump.c (jump_optimize_1): Don't increment LABEL_NUSES
on deleted labels.

From-SVN: r34094

gcc/ChangeLog
gcc/jump.c

index 9a561d6eb79363979a3345d299e276308131d659..b9b10ca681cd6a573008abd9c03d737a7001c0c8 100644 (file)
@@ -1,3 +1,8 @@
+Mon May 22 11:30:48 2000  Clinton Popetz  <cpopetz@cygnus.com>
+
+       * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
+       on deleted labels.
+
 2000-05-22  Zack Weinberg  <zack@wolery.cumb.org>
 
        * varasm.c (eh_frame_section): Revert change to argument list.
index 60d7ee682a944c37f5c283188c86656888d3aa41..8f54e4dd4d9a0e78fd947ec66a508ba7a1b21cf6 100644 (file)
@@ -245,7 +245,8 @@ jump_optimize_1 (f, cross_jump, noop_moves, after_regscan,
      regions; they cannot usually be deleted.  */
 
   for (insn = exception_handler_labels; insn; insn = XEXP (insn, 1))
-    LABEL_NUSES (XEXP (insn, 0))++;
+    if (GET_CODE (XEXP (insn, 0)) == CODE_LABEL)
+      LABEL_NUSES (XEXP (insn, 0))++;
 
   /* Quit now if we just wanted to rebuild the JUMP_LABEL and REG_LABEL
      notes and recompute LABEL_NUSES.  */