projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6582317
)
(do_jump_for_compare): Don't blow up if aren't any insns in this
author
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 14 Oct 1993 04:34:07 +0000
(
00:34
-0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 14 Oct 1993 04:34:07 +0000
(
00:34
-0400)
sequence yet.
From-SVN: r5789
gcc/expr.c
patch
|
blob
|
history
diff --git
a/gcc/expr.c
b/gcc/expr.c
index 5353fbaddab2c3787e91c807a699c7f33dccd7aa..59ee991a5a68ad1300c0a825566bf65c57eb2578 100644
(file)
--- 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