From 967bd8237796e2d5b7ea802179e682b280874c7d Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Mon, 24 Sep 2001 20:13:00 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/flow.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 207b126de9f5..64200d65d746 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-09-24 Ulrich Weigand : + + * flow.c (delete_dead_jumptables): Delete jumptable if the only + reference is from the literal pool. + 2001-09-24 Janis Johnson * doc/install.texi (Final install): Request additional information diff --git a/gcc/flow.c b/gcc/flow.c index eb1d23a12e24..311f8d8b726d 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)) -- 2.43.5