mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 03:49:12 +08:00
9a480d6923
and endian bits for the picojava port. I am committing this (and the rebuilt Makefile.in/configure files). From-SVN: r29765
116 lines
2.1 KiB
C
116 lines
2.1 KiB
C
#ifndef __IEEE_BIG_ENDIAN
|
|
#ifndef __IEEE_LITTLE_ENDIAN
|
|
|
|
#ifdef __alpha__
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
#endif
|
|
|
|
#ifdef __arm__
|
|
/* ARM always has big-endian words. Within those words the byte ordering
|
|
appears to be big or little endian. Newlib doesn't seem to care about
|
|
the byte ordering within words. */
|
|
#define __IEEE_BIG_ENDIAN
|
|
#endif
|
|
|
|
#ifdef __hppa__
|
|
#define __IEEE_BIG_ENDIAN
|
|
#endif
|
|
|
|
#if defined (__sparc) || defined (__sparc__)
|
|
#define __IEEE_BIG_ENDIAN
|
|
#endif
|
|
|
|
#if defined(__m68k__) || defined(__mc68000__)
|
|
#define __IEEE_BIG_ENDIAN
|
|
#endif
|
|
|
|
#if defined (__H8300__) || defined (__H8300H__)
|
|
#define __IEEE_BIG_ENDIAN
|
|
#define __SMALL_BITFIELDS
|
|
#define _DOUBLE_IS_32BITS
|
|
#endif
|
|
|
|
#ifdef __H8500__
|
|
#define __IEEE_BIG_ENDIAN
|
|
#define __SMALL_BITFIELDS
|
|
#define _DOUBLE_IS_32BITS
|
|
#endif
|
|
|
|
#ifdef __sh__
|
|
#ifdef __LITTLE_ENDIAN__
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
#else
|
|
#define __IEEE_BIG_ENDIAN
|
|
#endif
|
|
#ifdef __SH3E__
|
|
#define _DOUBLE_IS_32BITS
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef _AM29K
|
|
#define __IEEE_BIG_ENDIAN
|
|
#endif
|
|
|
|
#ifdef __i386__
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
#endif
|
|
|
|
#ifdef __i960__
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
#endif
|
|
|
|
#ifdef __MIPSEL__
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
#endif
|
|
#ifdef __MIPSEB__
|
|
#define __IEEE_BIG_ENDIAN
|
|
#endif
|
|
|
|
#ifdef __pj__
|
|
#ifdef __pjl__
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
#else
|
|
#define __IEEE_BIG_ENDIAN
|
|
#endif
|
|
#endif
|
|
|
|
/* necv70 was __IEEE_LITTLE_ENDIAN. */
|
|
|
|
#ifdef __W65__
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
#define __SMALL_BITFIELDS
|
|
#define _DOUBLE_IS_32BITS
|
|
#endif
|
|
|
|
#if defined(__Z8001__) || defined(__Z8002__)
|
|
#define __IEEE_BIG_ENDIAN
|
|
#endif
|
|
|
|
#ifdef __m88k__
|
|
#define __IEEE_BIG_ENDIAN
|
|
#endif
|
|
|
|
#ifdef __v800
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
#endif
|
|
|
|
#ifdef __PPC__
|
|
#if (defined(_BIG_ENDIAN) && _BIG_ENDIAN) || (defined(_AIX) && _AIX)
|
|
#define __IEEE_BIG_ENDIAN
|
|
#else
|
|
#if (defined(_LITTLE_ENDIAN) && _LITTLE_ENDIAN) || (defined(__sun__) && __sun__) || (defined(__WIN32__) && __WIN32__)
|
|
#define __IEEE_LITTLE_ENDIAN
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef __IEEE_BIG_ENDIAN
|
|
#ifndef __IEEE_LITTLE_ENDIAN
|
|
#error Endianess not declared!!
|
|
#endif /* not __IEEE_LITTLE_ENDIAN */
|
|
#endif /* not __IEEE_BIG_ENDIAN */
|
|
|
|
#endif /* not __IEEE_LITTLE_ENDIAN */
|
|
#endif /* not __IEEE_BIG_ENDIAN */
|
|
|