diff options
author | aldot <aldot@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-08 10:18:27 +0000 |
---|---|---|
committer | aldot <aldot@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-08 10:18:27 +0000 |
commit | 96ddb2846164043127f342b15f1c2b12b1581b67 (patch) | |
tree | 7c9baba80079caf37b75ebbeacccd1a68a597dcb /libgcc/configure | |
parent | ac35b3c92b704b19e8e5db7bade01384d780e992 (diff) | |
download | gcc-96ddb2846164043127f342b15f1c2b12b1581b67.tar.gz |
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
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204562 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/configure')
-rw-r--r-- | libgcc/configure | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libgcc/configure b/libgcc/configure index 29fa46f597a..2bb1fb2d94f 100644 --- a/libgcc/configure +++ b/libgcc/configure @@ -4066,7 +4066,20 @@ if test "${libgcc_cv_dfp+set}" = set; then : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + +#include <fenv.h> + +int +main () +{ + _Decimal32 x; +int fe_except = + FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT; + + ; + return 0; +} _ACEOF if ac_fn_c_try_compile "$LINENO"; then : libgcc_cv_dfp=yes |