This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
PATCH Fix java/lang/ieeefp.h for arm-netbsdelf
- From: Richard Earnshaw <rearnsha at buzzard dot freeserve dot co dot uk>
- To: java-patches at gcc dot gnu dot org
- Cc: Richard dot Earnshaw at buzzard dot freeserve dot co dot uk
- Date: Wed, 16 Apr 2003 19:45:14 +0100
- Subject: PATCH Fix java/lang/ieeefp.h for arm-netbsdelf
- Reply-to: Richard dot Earnshaw at buzzard dot freeserve dot co dot uk
ARM systems running NetBSD/ELF use a pure-endian floating-point system (as
used by the VFP co-processor). We can tell this by the presence of the
pre-processor macro __VFP_FP__. This patch adds support for this format
in libjava.
2003-04-16 Richard Earnshaw <rearnsha at arm dot com>
* java/lang/ieeefp.h: Handle ARM platforms that have pure-endian
floating point.
Index: libjava/java/lang/ieeefp.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/ieeefp.h,v
retrieving revision 1.10
diff -p -p -r1.10 ieeefp.h
*** libjava/java/lang/ieeefp.h 19 Jul 2002 14:41:14 -0000 1.10
--- libjava/java/lang/ieeefp.h 16 Apr 2003 18:18:45 -0000
***************
*** 6,16 ****
#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. */
#define __IEEE_BIG_ENDIAN
#ifdef __ARMEL__
#define __IEEE_BYTES_LITTLE_ENDIAN
#endif
#endif
--- 6,26 ----
#endif
#if defined(__arm__) || defined(__thumb__)
! /* 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