Commit 38636eac by Eric Botcazou Committed by Eric Botcazou

re PR middle-end/17835 (stage2 compiler is broken because it is built with -fomit-frame-pointer)

	PR middle-end/17835
	* expmed.c (expand_sdiv_pow2): Force a stack adjustment
	before tentatively building the conditional move sequence.

From-SVN: r88661
parent ae8c9754
2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
PR middle-end/17285
* expmed.c (expand_sdiv_pow2): Force a stack adjustment
before tentatively building the conditional move sequence.
2004-10-07 Richard Sandiford <rsandifo@redhat.com> 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
PR target/16815 PR target/16815
......
...@@ -3305,6 +3305,11 @@ expand_sdiv_pow2 (enum machine_mode mode, rtx op0, HOST_WIDE_INT d) ...@@ -3305,6 +3305,11 @@ expand_sdiv_pow2 (enum machine_mode mode, rtx op0, HOST_WIDE_INT d)
{ {
rtx temp2; rtx temp2;
/* ??? emit_conditional_move forces a stack adjustment via
compare_from_rtx so, if the sequence is discarded, it will
be lost. Do it now instead. */
do_pending_stack_adjust ();
start_sequence (); start_sequence ();
temp2 = copy_to_mode_reg (mode, op0); temp2 = copy_to_mode_reg (mode, op0);
temp = expand_binop (mode, add_optab, temp2, GEN_INT (d-1), temp = expand_binop (mode, add_optab, temp2, GEN_INT (d-1),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment