summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-09-20 21:37:02 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2010-02-18 15:39:25 +0100
commitcc85954bdcd0ac1a8ca15a71955ced1a5fe691ce (patch)
treefc8b236d9b1dc0540eb76b0ff5e8b672a8e168d1
parentdd990670444498c8a8ce2da35e099a490d7dd0b9 (diff)
Better workaround for GCC bug
The problem triggered by CLAMP (see 692fd8a500e0f9eadc703b29b0c7550f57863e29) appears to be GCC bug #39501. A saner workaround than the previous one is to alter the compiler options.
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index be06adf5e5..501295b29f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -98,6 +98,9 @@ dnl Add flags for gcc and g++
if test "x$GCC" = xyes; then
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99 -ffast-math"
+ # Work around GCC bug #39501
+ CFLAGS="$CFLAGS -fno-finite-math-only"
+
# Enable -fvisibility=hidden if using a gcc that supports it
save_CFLAGS="$CFLAGS"
AC_MSG_CHECKING([whether $CC supports -fvisibility=hidden])
@@ -111,6 +114,9 @@ fi
if test "x$GXX" = xyes; then
CXXFLAGS="$CXXFLAGS -Wall"
+ # Work around GCC bug #39501
+ CXXFLAGS="$CXXFLAGS -fno-finite-math-only"
+
# Work around aliasing bugs - developers should comment this out
CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
fi