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

H.J. Lu hjl.tools@gmail.com
Fri Jul 29 12:58:00 GMT 2011


On Thu, Jul 28, 2011 at 1:07 PM, Richard Henderson <rth@redhat.com> 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 macro-ize this.
>
>

Here is is the updated patch.  OK for trunk?

Thanks.

-- 
H.J.
---
2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/morestack.S (X86_64_SAVE_NEW_STACK_BOUNDARY): New.
	Use X86_64_SAVE_NEW_STACK_BOUNDARY to save the new stack boundary
	for x86-64.  Properly check __x86_64__ and __LP64__.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-x32-morestack-2.patch
Type: text/x-diff
Size: 2915 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110729/2265138e/attachment.bin>


More information about the Gcc-patches mailing list