Bug#34659: libc6-dev: bits/endian.h broken for PPC (wishful thinking re: gcc)
On Sat, 6 Feb 1999 19:35:05 -0500, gobbel@andrew.cmu.edu wrote:
>Package: libc6-dev
>Version: 2.0.100-2
>
>On PowerPC, bits/endian.h apparently expects gcc to magically set __BIG_ENDIAN
>or __LITTLE_ENDIAN, depending on which mode the processor is currently using.
>From the source:
>
>/* PowerPC can be little or big endian. Hopefully gcc will know... */
That file has been truncated. It's supposed to read something like
/* PowerPC can be little or big endian. Hopefully gcc will know... */
#ifdef __MIPSEB__
#define __BYTE_ORDER __BIG_ENDIAN
#elif defined __MIPSEL__
#define __BYTE_ORDER __LITTLE_ENDIAN
#else
#error Unable to determine host byte order
#endif
-- and yes, gcc should be defining one of __MIPSEB__ or __MIPSEL__.
zw
Reply to: