* jump.c (invert_jump_1): Don't call redirect_jump_1 with
nlabel == JUMP_LABEL (jump).
From-SVN: r96105
+2005-03-08 J"orn Rennecke <joern.rennecke@st.com>
+
+ * jump.c (invert_jump_1): Don't call redirect_jump_1 with
+ nlabel == JUMP_LABEL (jump).
+
2005-03-08 Kazu Hirata <kazu@cs.umass.edu>
* c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
if (num_validated_changes () == ochanges)
return 0;
- return redirect_jump_1 (jump, nlabel);
+ /* redirect_jump_1 will fail of nlabel == olabel, and the current use is
+ in Pmode, so checking this is not merely an optimization. */
+ return nlabel == JUMP_LABEL (jump) || redirect_jump_1 (jump, nlabel);
}
/* Invert the condition of the jump JUMP, and make it jump to label