Re: _LP64 and _ILP32

2011-06-05 Thread Warner Losh
On Jun 5, 2011, at 4:13 AM, Ben Laurie wrote: > On 05/06/2011 06:03, Warner Losh wrote: >> I'd add them for all !_LP64 architectures: arm, mips o32, mips n32, i386, >> and powerpc... > > Forgive the stupid question, but ... add them to what? If they aren't already defined by the compilers, thos

Re: _LP64 and _ILP32

2011-06-05 Thread Ben Laurie
On 05/06/2011 06:03, Warner Losh wrote: > I'd add them for all !_LP64 architectures: arm, mips o32, mips n32, i386, and > powerpc... Forgive the stupid question, but ... add them to what? > > Warner > > On Jun 4, 2011, at 2:41 PM, Ben Laurie wrote: > >> It turns out that both clang and gcc de

Re: _LP64 and _ILP32

2011-06-04 Thread Warner Losh
I'd add them for all !_LP64 architectures: arm, mips o32, mips n32, i386, and powerpc... Warner On Jun 4, 2011, at 2:41 PM, Ben Laurie wrote: > It turns out that both clang and gcc define _LP64 when used native on amd64. > > Neither defines _ILP32 on i386 (native or cross-compiled). > > dt_po