__attribute__((flatten)) seems to be recognized by neither clang nor icc despite these compilers defining __GNUC__.

This commit is contained in:
Benoit Jacob 2011-02-22 08:40:37 -05:00
parent 68631e28d4
commit 3884308da7

View File

@ -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