diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 417c9fc51..56c16de82 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,11 @@ +2010-06-18 Pavel Pisa + + * libc/include/machine/ieeefp.h[__arm__][!__VFP_FP__]: Set to + __IEEE_BIG_ENDIAN and set __IEEE_BYTES_LITTLE_ENDIAN appropriately + based on __ARMEL flag. + * libc/include/machine/endian.h: To set byte order to LITTLE_ENDIAN, + check for __IEEE_LITTLE_ENDIAN or __IEEE_BYTES_LITTLE_ENDIAN. + 2010-06-09 Paul Brook * libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be diff --git a/newlib/libc/include/machine/endian.h b/newlib/libc/include/machine/endian.h index c1e85999e..07ebc8f63 100644 --- a/newlib/libc/include/machine/endian.h +++ b/newlib/libc/include/machine/endian.h @@ -10,7 +10,7 @@ #endif #ifndef BYTE_ORDER -#ifdef __IEEE_LITTLE_ENDIAN +#if defined(__IEEE_LITTLE_ENDIAN) || defined(__IEEE_BYTES_LITTLE_ENDIAN) #define BYTE_ORDER LITTLE_ENDIAN #else #define BYTE_ORDER BIG_ENDIAN diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h index c174c2127..59e0c1f50 100644 --- a/newlib/libc/include/machine/ieeefp.h +++ b/newlib/libc/include/machine/ieeefp.h @@ -62,12 +62,8 @@ # define __IEEE_BIG_ENDIAN # endif #else +# define __IEEE_BIG_ENDIAN # ifdef __ARMEL__ -# define __IEEE_LITTLE_ENDIAN -# else -# define __IEEE_BIG_ENDIAN -# endif -# ifdef __ARMWEL__ # define __IEEE_BYTES_LITTLE_ENDIAN # endif #endif