src: disable fast math only on armv6
authorBen Noordhuis <info@bnoordhuis.nl>
Sat, 11 Apr 2015 03:34:27 +0000 (05:34 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Sat, 11 Apr 2015 19:04:38 +0000 (21:04 +0200)
Don't disable fast math on ARMv7, only ARMv6.  I hope I got all the
v6 subarchs.

PR-URL: https://github.com/iojs/io.js/pull/1398
Reviewed-By: Roman Reiss <me@silverwind.io>
src/node.cc

index 85b0f88d17f574e5b6144ee2e8116e2c893056ed..b74fbb249838546bcdced3e64cc35067900cdd0d 100644 (file)
@@ -3541,7 +3541,13 @@ void Init(int* argc,
                 DispatchDebugMessagesAsyncCallback);
   uv_unref(reinterpret_cast<uv_handle_t*>(&dispatch_debug_messages_async));
 
-#if defined(__arm__)
+#if defined(__ARM_ARCH_6__) || \
+    defined(__ARM_ARCH_6J__) || \
+    defined(__ARM_ARCH_6K__) || \
+    defined(__ARM_ARCH_6M__) || \
+    defined(__ARM_ARCH_6T2__) || \
+    defined(__ARM_ARCH_6ZK__) || \
+    defined(__ARM_ARCH_6Z__)
   // See https://github.com/iojs/io.js/issues/1376
   // and https://code.google.com/p/v8/issues/detail?id=4019
   // TODO(bnoordhuis): Remove test/parallel/test-arm-math-exp-regress-1376.js