Commit 0546e268 by Richard Stallman

(jump_optimize): When handling dispatch table that always

goes to the same place, verify previous insn exists.

From-SVN: r2251
parent 4ee660d2
...@@ -621,6 +621,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan) ...@@ -621,6 +621,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
!= XEXP (XVECEXP (pat, diff_vec_p, 0), 0)) != XEXP (XVECEXP (pat, diff_vec_p, 0), 0))
break; break;
if (i == len if (i == len
&& dispatch != 0
&& GET_CODE (dispatch) == JUMP_INSN && GET_CODE (dispatch) == JUMP_INSN
&& JUMP_LABEL (dispatch) != 0 && JUMP_LABEL (dispatch) != 0
/* Don't mess with a casesi insn. */ /* Don't mess with a casesi insn. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment