summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-02-18 04:09:33 +0000
committerRich Felker <dalias@aerifal.cx>2016-02-18 04:09:33 +0000
commit5030e4a0605707c3f84c04c70ac689ca6ee54ffd (patch)
tree70aa3b92278b0749551e25211ffe8204c97c8689
parent157e28492a287907fb6f3d39894c2c1b84122b51 (diff)
downloadmusl-5030e4a0605707c3f84c04c70ac689ca6ee54ffd.tar.gz
musl-5030e4a0605707c3f84c04c70ac689ca6ee54ffd.tar.bz2
musl-5030e4a0605707c3f84c04c70ac689ca6ee54ffd.tar.xz
musl-5030e4a0605707c3f84c04c70ac689ca6ee54ffd.zip
partly revert detection of broken float in configure
commit 80fbaac4cd1930e9545a5d36bf46ae49011d2ce8 broke all soft-float archs, where gcc defines __GCC_IEC_559==0 because rounding modes and exception flags are not supported. for now, just check for __FAST_MATH__ as an indication of broken float. this won't detect all possible misconfigurations but it probably catches the most common one.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 779a3ef0..0e365856 100755
--- a/configure
+++ b/configure
@@ -660,7 +660,7 @@ fi
# for all packages. On recent GCC we can detect this and error out
# early rather than producing a seriously-broken math library.
#
-if trycppif "__FAST_MATH__ || (defined(__GCC_IEC_559) && __GCC_IEC_559==0)" \
+if trycppif "__FAST_MATH__" \
"$CFLAGS_C99FSE $CPPFLAGS $CFLAGS" ; then
fail "$0: error: compiler has broken floating point; check CFLAGS"
fi