This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Check __ILP32__ instead of __LP64__
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.
r~