diff options
author | Thomas White <taw@bitwiz.org.uk> | 2009-09-20 21:37:02 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2009-09-20 21:37:02 +0100 |
commit | ae23c2dcc88bcad22d9883371cdd97304d4d44b9 (patch) | |
tree | 9c2d8a3eb357bd27038ca7254a5d621da4d12775 | |
parent | 692fd8a500e0f9eadc703b29b0c7550f57863e29 (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.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 75189761ee..c585c7ba7c 100644 --- a/configure.ac +++ b/configure.ac @@ -96,12 +96,18 @@ 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" + # Work around aliasing bugs - developers should comment this out CFLAGS="$CFLAGS -fno-strict-aliasing" 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 |