diff mbox

PATCH: Use Pmode on x86_64 this parameter

Message ID 20120311011151.GA11343@intel.com
State New
Headers show

Commit Message

H.J. Lu March 11, 2012, 1:11 a.m. UTC
Hi,

This patch replaces DImode with Pmode on x86_64 this parameter.  OK
for trunk?

Thanks.

H.J.
---
2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (x86_this_parameter): Replace DImode with
	Pmode.

Comments

Uros Bizjak March 11, 2012, 10:23 a.m. UTC | #1
On Sun, Mar 11, 2012 at 2:11 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:

> This patch replaces DImode with Pmode on x86_64 this parameter.  OK
> for trunk?
>
> 2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
>
>        * config/i386/i386.c (x86_this_parameter): Replace DImode with
>        Pmode.

OK.

Thanks,
Uros.
diff mbox

Patch

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index bc144a9..bfa3cdc 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -31971,7 +31978,7 @@  x86_this_parameter (tree function)
         parm_regs = x86_64_ms_abi_int_parameter_registers;
       else
         parm_regs = x86_64_int_parameter_registers;
-      return gen_rtx_REG (DImode, parm_regs[aggr]);
+      return gen_rtx_REG (Pmode, parm_regs[aggr]);
     }
 
   nregs = ix86_function_regparm (type, function);