diff options
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/libc/include/machine/ieeefp.h | 2 | ||||
-rw-r--r-- | newlib/libc/include/sys/config.h | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 452034e00..233fe0516 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2002-01-07 Alan Matsuoka <alanm@redhat.com> + + * libc/include/machine/ieeefp.h: Configure d10v doubles to + be 32 bits if __DOUBLE__ == 32 otherwise doubles are 64 bits. + libc/include/sys/config.h: Ditto. + 2001-12-28 Corinna Vinschen <corinna@vinschen.de> * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE. diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h index d60759925..7502d3aed 100644 --- a/newlib/libc/include/machine/ieeefp.h +++ b/newlib/libc/include/machine/ieeefp.h @@ -138,7 +138,9 @@ #ifdef __D10V__ #define __IEEE_BIG_ENDIAN +#if __DOUBLE__ == 32 #define _DOUBLE_IS_32BITS +#endif #define __SMALL_BITFIELDS #endif diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h index 874622489..8b1358893 100644 --- a/newlib/libc/include/sys/config.h +++ b/newlib/libc/include/sys/config.h @@ -38,7 +38,9 @@ #undef UINT_MAX #define INT_MAX __INT_MAX__ #define UINT_MAX (__INT_MAX__ * 2U + 1) +#if __DOUBLE__ == 32 #define _DOUBLE_IS_32BITS +#endif #define _POINTER_INT short #define __IEEE_BIG_ENDIAN #endif |