From d7b0581c1c2ef60c08d238dae39298af6904918f Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 12 Feb 2014 21:51:58 -0800 Subject: Make sure that the compiler is strict in QtCore ICC defaults to "fast math" mode, which allows it to do non-compliant operations that may or may not result in unexpected values. Generally, it's ok, but apparently the code in qlocale_tools.cpp is too complex, so we're not taking chances. I can't rule out an issue in the code, though. Task-number: QTBUG-36795 Change-Id: Ica5cb77fb3a65d22ae8ad22e13b4ba78f1b5dadf Reviewed-by: Lars Knoll --- src/corelib/tools/tools.pri | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/tools/tools.pri b/src/corelib/tools/tools.pri index cac596f0bc..52bb987506 100644 --- a/src/corelib/tools/tools.pri +++ b/src/corelib/tools/tools.pri @@ -1,5 +1,7 @@ # Qt tools module +intel_icc: QMAKE_CXXFLAGS += -fp-model strict + HEADERS += \ tools/qalgorithms.h \ tools/qarraydata.h \ -- cgit v1.2.3