aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-10-04 19:06:09 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-10-04 19:06:09 -0400
commit34661f5c30b84d318e5fcc27182b2abba52c1889 (patch)
treea9e27769a67989fec1f0ca391eed0e341298eb73 /gcc
parent0b90f9c2dcde31078698a862dfcaaf5cc563ea94 (diff)
downloadgcc-34661f5c30b84d318e5fcc27182b2abba52c1889.zip
gcc-34661f5c30b84d318e5fcc27182b2abba52c1889.tar.gz
gcc-34661f5c30b84d318e5fcc27182b2abba52c1889.tar.bz2
(do_jump_for_compare): Properly scan insns when branch is at start of
sequence. From-SVN: r8214
Diffstat (limited to 'gcc')
-rw-r--r--gcc/expr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 217494c..4500076 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -9119,7 +9119,7 @@ do_jump_for_compare (comparison, if_false_label, if_true_label)
emit a jump to the false label and define the true label. */
if (bcc_gen_fctn[(int) GET_CODE (comparison)] != 0)
- emit_jump_insn ((*bcc_gen_fctn[(int) GET_CODE (comparison)]) (if_false_label));
+ emit_jump_insn ((*bcc_gen_fctn[(int) GET_CODE (comparison)])(if_false_label));
else
abort ();
@@ -9130,9 +9130,9 @@ do_jump_for_compare (comparison, if_false_label, if_true_label)
/* If there's only one preceding insn... */
insn = get_insns ();
else
- insn = NEXT_INSN (prev);
+ insn = NEXT_INSN (NEXT_INSN (prev));
- for (insn = NEXT_INSN (insn); insn; insn = NEXT_INSN (insn))
+ for (; insn; insn = NEXT_INSN (insn))
if (GET_CODE (insn) == JUMP_INSN)
{
if (branch)