mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 12:46:00 +08:00
Fix bug #1367: compilation fix for gcc 4.1!
(grafted from 94e8d8902f882058ff9912238e5934ab5632217d )
This commit is contained in:
parent
0fddbf3dc7
commit
9e0fa0ef6d
@ -497,10 +497,11 @@
|
|||||||
// attribute to maximize inlining. This should only be used when really necessary: in particular,
|
// attribute to maximize inlining. This should only be used when really necessary: in particular,
|
||||||
// it uses __attribute__((always_inline)) on GCC, which most of the time is useless and can severely harm compile times.
|
// it uses __attribute__((always_inline)) on GCC, which most of the time is useless and can severely harm compile times.
|
||||||
// FIXME with the always_inline attribute,
|
// FIXME with the always_inline attribute,
|
||||||
// gcc 3.4.x reports the following compilation error:
|
// gcc 3.4.x and 4.1 reports the following compilation error:
|
||||||
// Eval.h:91: sorry, unimplemented: inlining failed in call to 'const Eigen::Eval<Derived> Eigen::MatrixBase<Scalar, Derived>::eval() const'
|
// Eval.h:91: sorry, unimplemented: inlining failed in call to 'const Eigen::Eval<Derived> Eigen::MatrixBase<Scalar, Derived>::eval() const'
|
||||||
// : function body not available
|
// : function body not available
|
||||||
#if EIGEN_GNUC_AT_LEAST(4,0)
|
// See also bug 1367
|
||||||
|
#if EIGEN_GNUC_AT_LEAST(4,2)
|
||||||
#define EIGEN_ALWAYS_INLINE __attribute__((always_inline)) inline
|
#define EIGEN_ALWAYS_INLINE __attribute__((always_inline)) inline
|
||||||
#else
|
#else
|
||||||
#define EIGEN_ALWAYS_INLINE EIGEN_STRONG_INLINE
|
#define EIGEN_ALWAYS_INLINE EIGEN_STRONG_INLINE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user