diff options
author | Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | 2013-11-08 11:18:27 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | 2013-11-08 11:18:27 +0100 |
commit | ac088ba1f0efb35aa2b3d63021c0bafdb8328883 (patch) | |
tree | 7c9baba80079caf37b75ebbeacccd1a68a597dcb /libgcc/configure.ac | |
parent | 2cf19e2664161d6cb1d30c937eaa0c041d955faf (diff) | |
download | gcc-ac088ba1f0efb35aa2b3d63021c0bafdb8328883.zip gcc-ac088ba1f0efb35aa2b3d63021c0bafdb8328883.tar.gz gcc-ac088ba1f0efb35aa2b3d63021c0bafdb8328883.tar.bz2 |
libgcc: check for fenv.h in dfp configure check
uClibc can be built without fenv support, extend the configure check for
decimal floating point to probe the existance of fenv.h, too.
libgcc/ChangeLog:
2013-03-24 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
* configure.ac (libgcc_cv_dfp): Extend check to probe fenv.h
availability.
* configure: Regenerate
From-SVN: r204562
Diffstat (limited to 'libgcc/configure.ac')
-rw-r--r-- | libgcc/configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libgcc/configure.ac b/libgcc/configure.ac index 186cd6e..560e988 100644 --- a/libgcc/configure.ac +++ b/libgcc/configure.ac @@ -182,7 +182,14 @@ AC_SUBST(long_double_type_size) # Check for decimal float support. AC_CACHE_CHECK([whether decimal floating point is supported], [libgcc_cv_dfp], - [AC_COMPILE_IFELSE([_Decimal32 x;], [libgcc_cv_dfp=yes], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#include <fenv.h> +]], [[ +_Decimal32 x; +int fe_except = + FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT; +]])], + [libgcc_cv_dfp=yes], [libgcc_cv_dfp=no])]) decimal_float=$libgcc_cv_dfp AC_SUBST(decimal_float) |