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

* config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
instead of TARGET_64BIT.

From-SVN: r184901

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

index e3134adc055446994d26641837e7ecaf57feadec..015bf019b68f59a4fd5b0975dc3696997563fd8f 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
+       instead of TARGET_64BIT.
+
 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
index 104bbd0823ff8f4b04ccc06be1a185a42ed0dd5a..1a2067eb4baece01efbd63870f028fce0d4350ad 100644 (file)
@@ -9296,7 +9296,7 @@ pro_epilogue_adjust_stack (rtx dest, rtx src, rtx offset,
   rtx insn;
   bool add_frame_related_expr = false;
 
-  if (! TARGET_64BIT)
+  if (Pmode == SImode)
     insn = gen_pro_epilogue_adjust_stack_si_add (dest, src, offset);
   else if (x86_64_immediate_operand (offset, DImode))
     insn = gen_pro_epilogue_adjust_stack_di_add (dest, src, offset);