diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2010-09-09 18:47:11 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2010-09-09 18:47:11 +0000 |
commit | b1012ca4be23e00404c49f8520196af908110a10 (patch) | |
tree | b0229dad035aa2b5e40711de60b627e662093e81 /libgfortran/intrinsics/c99_functions.c | |
parent | 82916e7e24ad8ce033780aa3217de74c0c4f58f9 (diff) | |
download | gcc-b1012ca4be23e00404c49f8520196af908110a10.zip gcc-b1012ca4be23e00404c49f8520196af908110a10.tar.gz gcc-b1012ca4be23e00404c49f8520196af908110a10.tar.bz2 |
acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_ISFINITE, [...]): Remove.
* acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_ISFINITE,
LIBGFOR_CHECK_FOR_BROKEN_ISNAN,
LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY): Remove.
* configure.ac: Remove above checks.
* libgfortran.h: Define isnan, isinf, isfinite, isnormal and
signbit in terms of the respective built-ins.
* io/write_float.def (WRITE_FLOAT): Use signbit() instead of
__builtin_signbit().
* intrinsics/c99_functions.c (tgamma): Use isnan() instead of
__builtin_isnan().
* config.h.in: Regenerate.
* configure: Regenerate.
From-SVN: r164119
Diffstat (limited to 'libgfortran/intrinsics/c99_functions.c')
-rw-r--r-- | libgfortran/intrinsics/c99_functions.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libgfortran/intrinsics/c99_functions.c b/libgfortran/intrinsics/c99_functions.c index 03bcbfe..20fc7e0 100644 --- a/libgfortran/intrinsics/c99_functions.c +++ b/libgfortran/intrinsics/c99_functions.c @@ -558,7 +558,6 @@ powf (float x, float y) } #endif -/* Note that if fpclassify is not defined, then NaN is not handled */ /* Algorithm by Steven G. Kargl. */ @@ -1854,7 +1853,7 @@ tgamma (double x) n = 0; y = x; - if (__builtin_isnan (x)) + if (isnan (x)) return x; if (y <= 0) |