Re: PATCH: Fix config/i386/morestack.S for x32

2011-07-29 Thread H.J. Lu
On Thu, Jul 28, 2011 at 1:07 PM, Richard Henderson wrote: > On 07/28/2011 12:42 PM, H.J. Lu wrote: >> +#ifdef __LP64__ >>       movq    %rax,%fs:0x70           # Save the new stack boundary. >> +#else >> +     movl    %eax,%fs:0x40           # Save the new stack boundary. >> +#endif > > Please mac

Re: PATCH: Fix config/i386/morestack.S for x32

2011-07-28 Thread Ian Lance Taylor
"H.J. Lu" writes: > On Thu, Jul 28, 2011 at 1:07 PM, Richard Henderson wrote: >> On 07/28/2011 12:42 PM, H.J. Lu wrote: >>> +#ifdef __LP64__ >>>       movq    %rax,%fs:0x70           # Save the new stack boundary. >>> +#else >>> +     movl    %eax,%fs:0x40           # Save the new stack boundary

Re: PATCH: Fix config/i386/morestack.S for x32

2011-07-28 Thread Richard Henderson
On 07/28/2011 12:42 PM, H.J. Lu wrote: > +#ifdef __LP64__ > movq%rax,%fs:0x70 # Save the new stack boundary. > +#else > + movl%eax,%fs:0x40 # Save the new stack boundary. > +#endif Please macro-ize this. r~

PATCH: Fix config/i386/morestack.S for x32

2011-07-28 Thread H.J. Lu
Hi Ian, x32 is similar to x86-64 with 32bit pointer size. This patch adds x32 support to config/i386/morestack.S. Tested on x32. OK for trunk? Thanks. H.J. --- 2011-07-28 H.J. Lu * config/i386/morestack.S: Properly save the x32 new stack boundary. Properly check __x86_64_