From f11364290e8b9dd72148887b70be68599fd55b44 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 22 Mar 2019 09:26:24 +0100 Subject: ICC does not support -fno-unsafe-math-optimizations --- Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h') 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 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) -- cgit v1.2.3