This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH roland/off64_t] clean up wordsize-64 off_t functions
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: <libc-alpha at sourceware dot org>, <libc-ports at sourceware dot org>
- Date: Thu, 2 Aug 2012 20:46:34 +0000
- Subject: Re: [PATCH roland/off64_t] clean up wordsize-64 off_t functions
- References: <20120802172110.E4A912C0DF@topped-with-meat.com>
On Thu, 2 Aug 2012, Roland McGrath wrote:
> ia64 and powerpc64 don't have their own bits/typesizes.h files. So some
> more work will be required there too and again I'm not entirely sure
> what's best to do. We can make the generic bits/typesizes.h test
> __LP64__, but I'm not positive that all compiler versions that we
> support for those targets defined that. (Note that here we have to be
> concerned with all compilers that we support for building applications
> with libc headers, not just the compilers we support for building libc
> itself.)
How is this definition *used* by installed headers? If installed headers
don't use it (only define it), it could be conditioned on _LIBC so it's
clear it's not a public interface. It appears __LP64__ has been defined
(if long and pointers are 64-bit and int is 32-bit) since at least GCC
3.4.
--
Joseph S. Myers
joseph@codesourcery.com