Bug 369722: the IEEE_ARM macro should not be defined for ARM EABI. The NSPRPUB_PRE_4_2_CLIENT_BRANCH
authorwtc%google.com
Mon, 14 May 2007 18:17:32 +0000
branchNSPRPUB_PRE_4_2_CLIENT_BRANCH
changeset 3837 bd225879f8f45e71d4f2b7f9de3ef5697bc95089
parent 3815 ea167be6fad525e50014016dd0b6aaddac2f7912
child 3838 fdd106c0e79c7f9ea014486c735830b92cf435d7
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 Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
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