From 3884308da7f460ccb810a0bd7b10d38c052b2925 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Tue, 22 Feb 2011 08:40:37 -0500 Subject: [PATCH] __attribute__((flatten)) seems to be recognized by neither clang nor icc despite these compilers defining __GNUC__. --- Eigen/src/Core/util/Macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index 7bb8cf434..5088099fb 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -142,7 +142,7 @@ #define EIGEN_ALWAYS_INLINE_ATTRIB #endif -#if EIGEN_GNUC_AT_LEAST(4,1) +#if EIGEN_GNUC_AT_LEAST(4,1) && !defined(__clang__) && !defined(__intel_compiler) #define EIGEN_FLATTEN_ATTRIB __attribute__((flatten)) #else #define EIGEN_FLATTEN_ATTRIB