Skip to content

Commit

Permalink
partly revert detection of broken float in configure
Browse files Browse the repository at this point in the history
commit 80fbaac 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.
  • Loading branch information
richfelker committed Feb 18, 2016
1 parent 157e284 commit 5030e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5030e4a

Please sign in to comment.