Since stack register may be in SImode for TARGET_64BIT, this patch
checks Pmode to set adjust_stack_insn.  OK for trunk?

Thanks.


H.J.
--
2012-03-02  H.J. Lu  <hongjiu...@intel.com>
 
        * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
        adjust_stack_insn.

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);
 
-- 
1.7.6.5

Reply via email to