PATCH: Check LONG_MAX > INT_MAX for __WORDSIZE
Roland McGrath
roland@hack.frob.com
Fri Apr 13 04:04:00 GMT 2012
> I can change x32 psABI to define __ILP32__ if it helps.
I certainly agree with Paul that this is far cleaner, even if the
limits.h trick were technically acceptable (which it's not, for the
reasons Paul gave). I was going to ask if there were really x86_64
systems with GCC < 3.3 where libc actually works. But if you make x32
compilers predefine __ILP32__ and test that then we don't need to figure
out the answer.
I think it would be best to be consistent in the sense of the tests we
use. So once you've changed the compiler, please make all the tests in
libc be on __ILP32__ rather than !__LP64__.
Thanks,
Roland
More information about the Libc-alpha
mailing list