summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-24 20:13:00 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-24 20:13:00 +0000
commit0de616acaf5a5c030aa345f35f272041482a1651 (patch)
tree34cf6e9f9dd84ae07f59043452f31e782a25e41c /gcc
parentd9c5861327377622f04311ecfbd209b3dcc088a6 (diff)
downloadgcc-0de616acaf5a5c030aa345f35f272041482a1651.tar.gz
* flow.c (delete_dead_jumptables): Delete jumptable if the only
reference is from the literal pool. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45783 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/flow.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 207b126de9f..64200d65d74 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/flow.c b/gcc/flow.c
index eb1d23a12e2..311f8d8b726 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))