aboutsummaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2001-09-24 20:13:00 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2001-09-24 20:13:00 +0000
commit967bd8237796e2d5b7ea802179e682b280874c7d (patch)
tree34cf6e9f9dd84ae07f59043452f31e782a25e41c /gcc/flow.c
parentdea2f2dbed4fd7b31343d67e3f5579a6ab4ffb0b (diff)
downloadgcc-967bd8237796e2d5b7ea802179e682b280874c7d.zip
gcc-967bd8237796e2d5b7ea802179e682b280874c7d.tar.gz
gcc-967bd8237796e2d5b7ea802179e682b280874c7d.tar.bz2
flow.c (delete_dead_jumptables): Delete jumptable if the only reference is from the literal pool.
* flow.c (delete_dead_jumptables): Delete jumptable if the only reference is from the literal pool. From-SVN: r45783
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index eb1d23a..311f8d8 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -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))