PATCH: Check __ILP32__ instead of __LP64__

Richard Henderson rth@twiddle.net
Sat Apr 14 17:19:00 GMT 2012


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~



More information about the Libc-alpha mailing list