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 Saturday, April 14, 2012 20:43:59 Paul Eggert wrote:
> On 04/14/2012 10:58 AM, Andreas Jaeger wrote:
> > We require that glibc is compiled by GCC, so what other compiler do
> > you have in mind
> 
> I think H.J. is worried about the case where the code is
> in user-visible headers, so compilers other than GCC
> can be involved; see:

But his patch was for the glibc test suite...

> http://sourceware.org/ml/libc-alpha/2012-04/msg00486.html
> 
> We have to solve that case anyway, and
> H.J. is modifying the x32 specification so that compilers
> for x32 must #define __ILP32__.  Since that change is
> being made anyway, Roland thought it was more consistent for
> the glibc code to use __ILP32__ consistently in place of
> !__LP64__; see:
> 
> http://sourceware.org/ml/libc-alpha/2012-04/msg00488.html

Ok, now understood.
 
> > we can also add __LP64__ to the psABI of x86-64,
> 
> That might also be a good idea, for sanity's sake.  However,
> that will require that all x86-64 compilers change, no?  Even
> those that merely read glibc headers to compile user code.
> So it will take longer to percolate through the ecosystem
> than the x32 change will, as x32 is still being developed.

GCC has __LP64__ since the beginning of x86-64 support AFAIR,

Andreas
-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 NÃrnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix ImendÃrffer,HRB16746 (AG NÃrnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126


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