Check Pmode to set adjust_stack_insn
authorH.J. Lu <hongjiu.lu@intel.com>
Sun, 4 Mar 2012 21:21:55 +0000 (21:21 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sun, 4 Mar 2012 21:21:55 +0000 (13:21 -0800)
2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
adjust_stack_insn.

From-SVN: r184900

gcc/ChangeLog
gcc/config/i386/i386.c

index 486f934..e3134ad 100644 (file)
@@ -1,5 +1,10 @@
 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
 
+       * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
+       adjust_stack_insn.
+
+2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
+
        * config/i386/i386.c (ix86_print_operand_address): Only handle
        zero-extended DImode addresses.
 
index fa040a9..104bbd0 100644 (file)
@@ -10330,7 +10330,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);