From a4d88475fadad33361da235a4ac49b5463f8ec74 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 11 Apr 2015 05:34:27 +0200 Subject: [PATCH] src: disable fast math only on armv6 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 --- src/node.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index 85b0f88d17..b74fbb2498 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3541,7 +3541,13 @@ void Init(int* argc, DispatchDebugMessagesAsyncCallback); uv_unref(reinterpret_cast(&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