flow.c (delete_dead_jumptables): Delete jumptable if the only reference is from the...
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 24 Sep 2001 20:13:00 +0000 (20:13 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Mon, 24 Sep 2001 20:13:00 +0000 (20:13 +0000)
* flow.c (delete_dead_jumptables): Delete jumptable if the only
reference is from the literal pool.

From-SVN: r45783

gcc/ChangeLog
gcc/flow.c

index 207b126de9f50fa9c103004b1f2d19c8b34791ff..64200d65d7461519d33b8a52906ffb3c138895bc 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
+
+       * flow.c (delete_dead_jumptables): Delete jumptable if the only
+       reference is from the literal pool.
+
 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
 
        * doc/install.texi (Final install): Request additional information
index eb1d23a12e243ce88e5a6efcb198a59eae018628..311f8d8b726d30f2bee984d9bfeb510a3678bf83 100644 (file)
@@ -795,7 +795,7 @@ delete_dead_jumptables ()
     {
       next = NEXT_INSN (insn);
       if (GET_CODE (insn) == CODE_LABEL
-         && LABEL_NUSES (insn) == 0
+         && LABEL_NUSES (insn) == LABEL_PRESERVE_P (insn)
          && GET_CODE (next) == JUMP_INSN
          && (GET_CODE (PATTERN (next)) == ADDR_VEC
              || GET_CODE (PATTERN (next)) == ADDR_DIFF_VEC))