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 486f9345f2835d5cea762f5ab76f2f4e11fd164d..e3134adc055446994d26641837e7ecaf57feadec 100644 (file)
@@ -1,3 +1,8 @@
+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
index fa040a9a47f535deb785386914c7bb5930cf8675..104bbd0823ff8f4b04ccc06be1a185a42ed0dd5a 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);