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 e3134ad..015bf01 100644 (file)
@@ -1,5 +1,10 @@
 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
        adjust_stack_insn.
 
index 104bbd0..1a2067e 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);