diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-10-14 00:34:07 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-10-14 00:34:07 -0400 |
commit | f12f485a960ab57b3069f789faef1d57ee0e88c4 (patch) | |
tree | 41a289485fa34027fe3054498d5500f4214a0a5f | |
parent | 658231787c8855dac4230eb5a880abb10724b9a0 (diff) | |
download | gcc-f12f485a960ab57b3069f789faef1d57ee0e88c4.zip gcc-f12f485a960ab57b3069f789faef1d57ee0e88c4.tar.gz gcc-f12f485a960ab57b3069f789faef1d57ee0e88c4.tar.bz2 |
(do_jump_for_compare): Don't blow up if aren't any insns in this
sequence yet.
From-SVN: r5789
-rw-r--r-- | gcc/expr.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -8615,9 +8615,12 @@ do_jump_for_compare (comparison, if_false_label, if_true_label) else if (if_false_label) { rtx insn; - rtx prev = PREV_INSN (get_last_insn ()); + rtx prev = get_last_insn (); rtx branch = 0; + if (prev != 0) + prev = PREV_INSN (prev); + /* Output the branch with the opposite condition. Then try to invert what is generated. If more than one insn is a branch, or if the branch is not the last insn written, abort. If we can't invert |