Re: PATCH: Check ptr_mode and use Pmode in ix86_trampoline_init

2012-03-11 Thread Uros Bizjak
On Sun, Mar 11, 2012 at 4:52 PM, H.J. Lu wrote: >>> x86 trampoline depends on ptr_mode.  This patch checks ptr_mode, instead >>> of TARGET_X32.  Also we should use Pmode for address mode.  Tested on >>> Linux/x86-64.  OK for trunk? >> >> Why we are looking at ptr_mode here? >> > > If ptr_mode is

Re: PATCH: Check ptr_mode and use Pmode in ix86_trampoline_init

2012-03-11 Thread H.J. Lu
On Sun, Mar 11, 2012 at 7:54 AM, Uros Bizjak wrote: > On Sun, Mar 11, 2012 at 2:18 AM, H.J. Lu wrote: >> Hi, >> >> x86 trampoline depends on ptr_mode.  This patch checks ptr_mode, instead >> of TARGET_X32.  Also we should use Pmode for address mode.  Tested on >> Linux/x86-64.  OK for trunk? > >

Re: PATCH: Check ptr_mode and use Pmode in ix86_trampoline_init

2012-03-11 Thread Uros Bizjak
On Sun, Mar 11, 2012 at 2:18 AM, H.J. Lu wrote: > Hi, > > x86 trampoline depends on ptr_mode.  This patch checks ptr_mode, instead > of TARGET_X32.  Also we should use Pmode for address mode.  Tested on > Linux/x86-64.  OK for trunk? Why we are looking at ptr_mode here? Uros.

PATCH: Check ptr_mode and use Pmode in ix86_trampoline_init

2012-03-10 Thread H.J. Lu
Hi, x86 trampoline depends on ptr_mode. This patch checks ptr_mode, instead of TARGET_X32. Also we should use Pmode for address mode. Tested on Linux/x86-64. OK for trunk? Thanks. H.J. --- 2012-03-10 H.J. Lu * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if