Add arm thumb support
authorAnthony Green <green@redhat.com>
Sun, 17 Mar 2002 16:18:53 +0000 (16:18 +0000)
committerAnthony Green <green@gcc.gnu.org>
Sun, 17 Mar 2002 16:18:53 +0000 (16:18 +0000)
From-SVN: r50920

libjava/ChangeLog
libjava/java/lang/ieeefp.h

index c99540070d13569fdf31c087ff08a9ae63ad7ae2..1a75514c0782547f25cfeddb16ee9c3bf97423f6 100644 (file)
@@ -1,3 +1,7 @@
+2002-03-17  Anthony Green  <green@redhat.com>
+
+       * java/lang/ieeefp.h: Add ARM thumb support (copied from newlib).
+
 2002-03-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
        Build a single libgcj.so, without separate gc and zlib libraries.
index 32ff11fdc4b1781dceadf140ca6887925fee7b44..4439e6f2f633baef92fd13f863106a2a87acac6b 100644 (file)
@@ -5,11 +5,13 @@
 #define __IEEE_LITTLE_ENDIAN
 #endif
 
-#ifdef __arm__
+#if defined(__arm__) || defined(__thumb__)
 /* ARM always has big-endian words.  Within those words the byte ordering
-   appears to be big or little endian.  Newlib doesn't seem to care about
-   the byte ordering within words.  */
+   will be big or little endian depending upon the target.  */
 #define __IEEE_BIG_ENDIAN
+#ifdef __ARMEL__
+#define __IEEE_BYTES_LITTLE_ENDIAN
+#endif
 #endif
 
 #ifdef __hppa__