From 7e08f3969cc086c89d819e6d54eb7c7cea2e71f8 Mon Sep 17 00:00:00 2001 From: Fedor Date: Wed, 9 Sep 2020 17:29:35 +0300 Subject: [PATCH] [js] Reinstate precise floating point model for all js sources. --- js/src/moz.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/moz.build b/js/src/moz.build index c0cef9929..3e6402f71 100644 --- a/js/src/moz.build +++ b/js/src/moz.build @@ -687,8 +687,8 @@ if CONFIG['_MSC_VER']: elif CONFIG['CPU_ARCH'] == 'x86_64' and CONFIG['JS_HAS_CTYPES']: SOURCES['ctypes/CTypes.cpp'].no_pgo = True # Bug 810661 # Prevent floating point errors caused by VC++ optimizations - # XXX We should add this to CXXFLAGS, too? CFLAGS += ['-fp:precise'] + CXXFLAGS += ['-fp:precise'] # C4805 warns mixing bool with other integral types in computation. # But given the conversion from bool is specified, and this is a # pattern widely used in code in js/src, suppress this warning here.