aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorStan Cox <coxs@gnu.org>1996-12-09 21:37:37 +0000
committerStan Cox <coxs@gnu.org>1996-12-09 21:37:37 +0000
commit19f5ce60f80423710b14e915da94b6f42ab25801 (patch)
tree870dc41da1325815dac28c76e9121882c4acf51b /gcc
parentf58acb677967a07e7bafe5f886812cde60a1832c (diff)
downloadgcc-19f5ce60f80423710b14e915da94b6f42ab25801.zip
gcc-19f5ce60f80423710b14e915da94b6f42ab25801.tar.gz
gcc-19f5ce60f80423710b14e915da94b6f42ab25801.tar.bz2
(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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/jump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index ba06022..839421f 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))