[PATCH 13/25] Split up endian.h to minimize exposure of BYTE_ORDER.
Joseph Myers
joseph@codesourcery.com
Wed Jul 24 21:14:00 GMT 2019
On Wed, 26 Jun 2019, Zack Weinberg wrote:
> - The C-SKY port does not fully support big-endian mode, but I do
> not think this is sufficient reason to make csky/bits/endian(ness).h
> error out if __CSKYBE__ is defined, so it now defines __BYTE_ORDER
> appropriately for whichever mode the compiler is in.
The general principle here is that we have a defined set of known ABIs
supported by glibc - and if the compiler might support some other ABI
variant that isn't properly supported by glibc (and doesn't have its own
dynamic linker name allocated in glibc, for example), we should ensure
that any attempt to build glibc for that ABI fails.
(The most friendly way to fail would probably be an error from the
preconfigure fragment rather than later when building some file including
some header using #error.)
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list