summaryrefslogtreecommitdiff
path: root/stepmake
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2012-05-07 20:30:48 +0200
committerDavid Kastrup <dak@gnu.org>2012-05-09 07:22:34 +0200
commitca7baa2950c23337825b1c5f6e22e8fd514cd648 (patch)
treeb688cbfc0b5b59c1e9a57db078ece954826913a9 /stepmake
parent9e52e03f6d8c4958c3c5335113332310c5c437c7 (diff)
Issue 2513: Build: add -fno-tree-vrp to CXXFLAGS for gcc 4.7.0
That optimization breaks min() call in simultaneous-music-iterator.cc leading to incorrect output and bogus barcheck errors. Generalize STEPMAKE_GXXCODEGENBUG to show bug description with the flag. GCC bug reported: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53239 Signed-off-by: David Kastrup <dak@gnu.org>
Diffstat (limited to 'stepmake')
-rw-r--r--stepmake/aclocal.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/stepmake/aclocal.m4 b/stepmake/aclocal.m4
index 8be2cab11d..42c65a58cd 100644
--- a/stepmake/aclocal.m4
+++ b/stepmake/aclocal.m4
@@ -287,12 +287,16 @@ AC_DEFUN(STEPMAKE_CXXTEMPLATE, [
])
AC_DEFUN(STEPMAKE_GXXCODEGENBUG, [
- AC_MSG_CHECKING([options for known g++ tail call bug])
+ AC_MSG_CHECKING([options for known g++ bugs])
case "$GXX:$CXX_VERSION" in
yes:400600?)
- AC_MSG_RESULT([-fno-optimize-sibling-calls])
+ AC_MSG_RESULT([-fno-optimize-sibling-calls (tail call bug)])
CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
;;
+ yes:400700?)
+ AC_MSG_RESULT([-fno-tree-vrp (comparison bug)])
+ CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
+ ;;
*) AC_MSG_RESULT([none])
esac
AC_SUBST(CXXFLAGS)