This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Check __ILP32__ instead of __LP64__


On Sat, Apr 14, 2012 at 10:18 AM, Richard Henderson <rth@twiddle.net> wrote:
> On 04/14/2012 11:36 AM, H.J. Lu wrote:
>> They make no difference when glibc is compiled with GCC >= 3.3.
>> Since __LP64__ isn't specified by x86-64 psABI, when glibc is
>> compiled by another compiler, it may not work correctly.
>
> But neither is __ILP32__, so you're exchanging one "bug" for another.
>
> If you want to compile glibc with another compiler, you should have
> a configure-time check for __LP64__ and supply it if missing via -D.
>

Since __ILP32__ is required by x32 psABI, if __x86_64 is defined
and __ILP32__ isn't defined, it can't be x32.



-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]