mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-10 23:09:06 +08:00
comment the workaround of the EIGEN_EMPTY_STRUCT_CTOR workaround for gcc 4.3
This commit is contained in:
parent
282b5614ed
commit
c201aabf3e
@ -27,6 +27,8 @@
|
|||||||
#define EIGEN_XPRHELPER_H
|
#define EIGEN_XPRHELPER_H
|
||||||
|
|
||||||
// just a workaround because GCC seems to not really like empty structs
|
// just a workaround because GCC seems to not really like empty structs
|
||||||
|
// FIXME: gcc 4.3 generates bad code when strict-aliasing is enabled
|
||||||
|
// so currently we simply disable this optimization for gcc 4.3
|
||||||
#if (defined __GNUG__) && !((__GNUC__==4) && (__GNUC_MINOR__==3))
|
#if (defined __GNUG__) && !((__GNUC__==4) && (__GNUC_MINOR__==3))
|
||||||
#define EIGEN_EMPTY_STRUCT_CTOR(X) \
|
#define EIGEN_EMPTY_STRUCT_CTOR(X) \
|
||||||
EIGEN_STRONG_INLINE X() {} \
|
EIGEN_STRONG_INLINE X() {} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user