diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2003-04-16 18:32:06 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@gcc.gnu.org> | 2003-04-16 18:32:06 +0000 |
commit | bc617f8a484b8682384f2e9a7a2f68522180fc1c (patch) | |
tree | 9b00cff916af6a69e255832096b59dc39baa7f1a | |
parent | 351c2c4b2f40cc375952325858a9593f1a8d34b5 (diff) | |
download | gcc-bc617f8a484b8682384f2e9a7a2f68522180fc1c.zip gcc-bc617f8a484b8682384f2e9a7a2f68522180fc1c.tar.gz gcc-bc617f8a484b8682384f2e9a7a2f68522180fc1c.tar.bz2 |
ieeefp.h: Handle ARM platforms that have pure-endian floating point.
* java/lang/ieeefp.h: Handle ARM platforms that have pure-endian
floating point.
From-SVN: r65693
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/lang/ieeefp.h | 14 |
2 files changed, 17 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 3fe91a3..350bef9 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2003-04-16 Richard Earnshaw <rearnsha@arm.com> + + * java/lang/ieeefp.h: Handle ARM platforms that have pure-endian + floating point. + 2003-04-15 Jakub Jelinek <jakub@redhat.com> * configure.host (*-linux*): Don't set slow_pthread_self if primary diff --git a/libjava/java/lang/ieeefp.h b/libjava/java/lang/ieeefp.h index fc56de0..2bef695 100644 --- a/libjava/java/lang/ieeefp.h +++ b/libjava/java/lang/ieeefp.h @@ -6,13 +6,23 @@ #endif #if defined(__arm__) || defined(__thumb__) -/* ARM always has big-endian words. Within those words the byte ordering - will be big or little endian depending upon the target. */ +/* ARM traditionally used big-endian words; and within those words the + byte ordering was big or little endian depending upon the target. + Modern floating-point formats are naturally ordered; in this case + __VFP_FP__ will be defined, even if soft-float. */ +#ifdef __VFP_FP__ +#ifdef __ARMEL__ +#define __IEEE_LITTLE_ENDIAN +#else +#define __IEEE_BIG_ENDIAN +#endif +#else #define __IEEE_BIG_ENDIAN #ifdef __ARMEL__ #define __IEEE_BYTES_LITTLE_ENDIAN #endif #endif +#endif #ifdef __hppa__ #define __IEEE_BIG_ENDIAN |