diff options
author | Nick Clifton <nickc@redhat.com> | 2010-06-24 10:01:57 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2010-06-24 10:01:57 +0000 |
commit | b27c1cde2eef96d0aadf6231817c40c688bec12f (patch) | |
tree | 465befe53012dc2949df5b399c904e56c2918615 /gcc/loop-unswitch.c | |
parent | 2dcef31e9fdba9034be59f3007b1c96a37dc6b68 (diff) | |
download | gcc-b27c1cde2eef96d0aadf6231817c40c688bec12f.zip gcc-b27c1cde2eef96d0aadf6231817c40c688bec12f.tar.gz gcc-b27c1cde2eef96d0aadf6231817c40c688bec12f.tar.bz2 |
loop-unswitch.c (compare_and_jump_seq): Assert that the last insn in the sequence is a jump insn before setting its label.
* loop-unswitch.c (compare_and_jump_seq): Assert that the last
insn in the sequence is a jump insn before setting its label.
From-SVN: r161313
Diffstat (limited to 'gcc/loop-unswitch.c')
-rw-r--r-- | gcc/loop-unswitch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/loop-unswitch.c b/gcc/loop-unswitch.c index edf62fa..77524d8 100644 --- a/gcc/loop-unswitch.c +++ b/gcc/loop-unswitch.c @@ -110,6 +110,7 @@ compare_and_jump_seq (rtx op0, rtx op1, enum rtx_code comp, rtx label, int prob, gcc_assert (rtx_equal_p (op1, XEXP (cond, 1))); emit_jump_insn (copy_insn (PATTERN (cinsn))); jump = get_last_insn (); + gcc_assert (JUMP_P (jump)); JUMP_LABEL (jump) = JUMP_LABEL (cinsn); LABEL_NUSES (JUMP_LABEL (jump))++; redirect_jump (jump, label, 0); @@ -123,6 +124,7 @@ compare_and_jump_seq (rtx op0, rtx op1, enum rtx_code comp, rtx label, int prob, do_compare_rtx_and_jump (op0, op1, comp, 0, mode, NULL_RTX, NULL_RTX, label, -1); jump = get_last_insn (); + gcc_assert (JUMP_P (jump)); JUMP_LABEL (jump) = label; LABEL_NUSES (label)++; } |