Hi,

Here is a small patch to fix a bug detected by Riccardo Mottola. It appears that big endian must be detected by also checking __powerpc__ and __BIG_ENDIAN__ in ieeefp.h

Cheers,

Guilhem.

ChangeLog:

2005-12-14  Riccardo Mottola  <[EMAIL PROTECTED]>

        * native/fdlibm/ieeefp.h: Fixed detection of big endian on
        powerpc.
Index: native/fdlibm/ieeefp.h
===================================================================
RCS file: /cvsroot/classpath/classpath/native/fdlibm/ieeefp.h,v
retrieving revision 1.6
diff -u -r1.6 ieeefp.h
--- native/fdlibm/ieeefp.h      24 Apr 2005 17:47:35 -0000      1.6
+++ native/fdlibm/ieeefp.h      14 Dec 2005 20:11:11 -0000
@@ -123,9 +123,8 @@
 #define __IEEE_LITTLE_ENDIAN
 #endif
 
-#if defined (__PPC__) || defined (__ppc__) || defined (__ppc64__)
-#if (defined(_BIG_ENDIAN) && _BIG_ENDIAN) || (defined(_AIX) && _AIX) \
-    || defined (__APPLE__)
+#if defined (__PPC__) || defined (__ppc__) || defined (__powerpc__) || defined 
(__ppc64__)
+#if (defined(_BIG_ENDIAN) && _BIG_ENDIAN) || (defined(_AIX) && _AIX) || 
defined (__BIG_ENDIAN__)|| defined (__APPLE__)
 #define __IEEE_BIG_ENDIAN
 #else
 #if (defined(_LITTLE_ENDIAN) && _LITTLE_ENDIAN) || (defined(__sun__) && 
__sun__) || (defined(__WIN32__) && __WIN32__)
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to