aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2019-03-22 09:26:24 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2019-03-22 09:26:24 +0100
commitf11364290e8b9dd72148887b70be68599fd55b44 (patch)
tree9f0c6fc56c58ecd6e45e77eda0c3bf280da43238 /Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h
parent51e399fc15e7149a42d9063df4bccbc929049bbf (diff)
ICC does not support -fno-unsafe-math-optimizations
Diffstat (limited to 'Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h')
-rw-r--r--Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h
index 452b4c806..43e827638 100644
--- a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h
+++ b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h
@@ -319,7 +319,7 @@ inline float trig_reduce_huge (float xf, int *quadrant)
template<bool ComputeSine,typename Packet>
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
EIGEN_UNUSED
-#if EIGEN_GNUC_AT_LEAST(4,4)
+#if EIGEN_GNUC_AT_LEAST(4,4) && EIGEN_COMP_GNUC_STRICT
__attribute__((optimize("-fno-unsafe-math-optimizations")))
#endif
Packet psincos_float(const Packet& _x)