Message ID | 20120302205850.GD2179@intel.com |
---|---|
State | New |
Headers | show |
On Fri, Mar 2, 2012 at 9:58 PM, H.J. Lu <hongjiu.lu@intel.com> wrote: > Since stack register may be in SImode for TARGET_64BIT, this patch > checks Pmode to set adjust_stack_insn. OK for trunk? > 2012-03-02 H.J. Lu <hongjiu.lu@intel.com> > > * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set > adjust_stack_insn. OK. Thanks, Uros.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index d6ec6ff..47fa36a 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -10338,7 +10338,7 @@ ix86_expand_prologue (void) emit_insn (ix86_gen_allocate_stack_worker (eax, eax)); /* Use the fact that AX still contains ALLOCATE. */ - adjust_stack_insn = (TARGET_64BIT + adjust_stack_insn = (Pmode == DImode ? gen_pro_epilogue_adjust_stack_di_sub : gen_pro_epilogue_adjust_stack_si_sub);