aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-09-26 19:09:26 +0000
committerRichard Stallman <rms@gnu.org>1992-09-26 19:09:26 +0000
commit0546e268358b519779e46f2c8132d34960550df6 (patch)
tree9535c6e5a364e3c9b31e0a6c728c2645a54454e8 /gcc
parent4ee660d23c7797889a463144467acf815b621e5c (diff)
downloadgcc-0546e268358b519779e46f2c8132d34960550df6.zip
gcc-0546e268358b519779e46f2c8132d34960550df6.tar.gz
gcc-0546e268358b519779e46f2c8132d34960550df6.tar.bz2
(jump_optimize): When handling dispatch table that always
goes to the same place, verify previous insn exists. From-SVN: r2251
Diffstat (limited to 'gcc')
-rw-r--r--gcc/jump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index f32e57a..21536b1 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -621,6 +621,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
!= XEXP (XVECEXP (pat, diff_vec_p, 0), 0))
break;
if (i == len
+ && dispatch != 0
&& GET_CODE (dispatch) == JUMP_INSN
&& JUMP_LABEL (dispatch) != 0
/* Don't mess with a casesi insn. */