aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-07-04 15:26:58 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-07-04 15:26:58 +0200
commitc201aabf3ecf4ebc8fcfeed5769dbad218b65cb1 (patch)
treec757df22882101b94f41e803a48dc267a0b23e38 /Eigen/src/Core
parent282b5614ed5ed9768107ff29dcf26a2324a94db9 (diff)
comment the workaround of the EIGEN_EMPTY_STRUCT_CTOR workaround for gcc 4.3
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r--Eigen/src/Core/util/XprHelper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/XprHelper.h b/Eigen/src/Core/util/XprHelper.h
index 7e6cb3381..f33b576ea 100644
--- a/Eigen/src/Core/util/XprHelper.h
+++ b/Eigen/src/Core/util/XprHelper.h
@@ -27,6 +27,8 @@
#define EIGEN_XPRHELPER_H
// 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))
#define EIGEN_EMPTY_STRUCT_CTOR(X) \
EIGEN_STRONG_INLINE X() {} \