From 19f5ce60f80423710b14e915da94b6f42ab25801 Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Mon, 9 Dec 1996 21:37:37 +0000 Subject: [PATCH] (jump_optimize): Don't move initialization if there is a label between it and the jump for if (foo) bar++ to bar += (foo !=0) From-SVN: r13257 --- gcc/jump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/jump.c b/gcc/jump.c index ba06022ce17..839421f5a0f 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1494,6 +1494,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan) into our sequence. */ if ((temp5 = prev_active_insn (insn)) != 0 + && no_labels_between_p (temp5, insn) && GET_CODE (temp5) == INSN && (temp6 = single_set (temp5)) != 0 && rtx_equal_p (temp2, SET_DEST (temp6)) -- 2.30.2