summaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-07 05:56:51 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-07 05:56:51 +0000
commit239d5663e952cfb28e296628f8672f3eba001740 (patch)
treeda520f4e23e0ed60122e12ee2f88be721c897f5e /gcc/expmed.c
parented4b0b7571345f7b0a107b279a70da609a02a7cc (diff)
downloadgcc-239d5663e952cfb28e296628f8672f3eba001740.tar.gz
PR middle-end/17835
* expmed.c (expand_sdiv_pow2): Force a stack adjustment before tentatively building the conditional move sequence. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88661 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 232381f2c5a..98981b8f247 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -3305,6 +3305,11 @@ expand_sdiv_pow2 (enum machine_mode mode, rtx op0, HOST_WIDE_INT d)
{
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 ();
temp2 = copy_to_mode_reg (mode, op0);
temp = expand_binop (mode, add_optab, temp2, GEN_INT (d-1),