Bug 369722: the IEEE_ARM macro should not be defined for ARM EABI. The
authorwtc%google.com
Mon, 14 May 2007 18:14:51 +0000
changeset 3836 d9bd376d3cfd6cdc58873fb8068eb3cf783534e8
parent 3835 a73ff8d0cfda2bfec42ec144b176f3425baf021c
child 3841 de5277b41626e8c5d1892511defeef0a67726517
push idunknown
push userunknown
push dateunknown
bugs369722
Bug 369722: the IEEE_ARM macro should not be defined for ARM EABI. The patch is contributed by romaxa <romaxa@gmail.com>. r=darin,wtc
pr/src/misc/prdtoa.c
--- a/pr/src/misc/prdtoa.c
+++ b/pr/src/misc/prdtoa.c
@@ -54,18 +54,19 @@ void _PR_CleanupDtoa(void)
     PR_DestroyLock(dtoa_lock[0]);
     dtoa_lock[0] = NULL;
     PR_DestroyLock(dtoa_lock[1]);
     dtoa_lock[1] = NULL;
 
     /* FIXME: deal with freelist and p5s. */
 }
 
-#if defined(__arm) || defined(__arm__) || defined(__arm26__) \
-    || defined(__arm32__)
+#if !defined(__ARM_EABI__) \
+    && (defined(__arm) || defined(__arm__) || defined(__arm26__) \
+    || defined(__arm32__))
 #define IEEE_ARM
 #elif defined(IS_LITTLE_ENDIAN)
 #define IEEE_8087
 #else
 #define IEEE_MC68k
 #endif
 
 #define Long PRInt32