From f12f485a960ab57b3069f789faef1d57ee0e88c4 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 14 Oct 1993 00:34:07 -0400 Subject: [PATCH] (do_jump_for_compare): Don't blow up if aren't any insns in this sequence yet. From-SVN: r5789 --- gcc/expr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/expr.c b/gcc/expr.c index 5353fbaddab..59ee991a5a6 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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 -- 2.30.2