Index: src/strtod.cc |
diff --git a/src/strtod.cc b/src/strtod.cc |
index aac74199ab376de232cc54f33cf099f9ef405577..dc5952c59d369c881f2056ef1cb04159dd25b2d7 100644 |
--- a/src/strtod.cc |
+++ b/src/strtod.cc |
@@ -153,7 +153,8 @@ static void ReadDiyFp(Vector<const char> buffer, |
static bool DoubleStrtod(Vector<const char> trimmed, |
int exponent, |
double* result) { |
-#if (V8_TARGET_ARCH_IA32 || defined(USE_SIMULATOR)) && !defined(_MSC_VER) |
+#if (V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87 || defined(USE_SIMULATOR)) && \ |
+ !defined(_MSC_VER) |
// On x86 the floating-point stack can be 64 or 80 bits wide. If it is |
// 80 bits wide (as is the case on Linux) then double-rounding occurs and the |
// result is not accurate. |