aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/acinclude.m4
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2010-09-09 18:47:11 +0000
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2010-09-09 18:47:11 +0000
commitb1012ca4be23e00404c49f8520196af908110a10 (patch)
treeb0229dad035aa2b5e40711de60b627e662093e81 /libgfortran/acinclude.m4
parent82916e7e24ad8ce033780aa3217de74c0c4f58f9 (diff)
downloadgcc-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/acinclude.m4')
-rw-r--r--libgfortran/acinclude.m4113
1 files changed, 0 insertions, 113 deletions
diff --git a/libgfortran/acinclude.m4 b/libgfortran/acinclude.m4
index 3355287..09cd292 100644
--- a/libgfortran/acinclude.m4
+++ b/libgfortran/acinclude.m4
@@ -196,119 +196,6 @@ if test x"$libgfor_cv_have_crlf" = xyes; then
AC_DEFINE(HAVE_CRLF, 1, [Define if CRLF is line terminator.])
fi])
-dnl Check whether isfinite is broken.
-dnl The most common problem is that it does not work on long doubles.
-AC_DEFUN([LIBGFOR_CHECK_FOR_BROKEN_ISFINITE], [
- AC_CACHE_CHECK([whether isfinite is broken],
- libgfor_cv_have_broken_isfinite, [
- libgfor_check_for_broken_isfinite_save_LIBS=$LIBS
- LIBS="$LIBS -lm"
- AC_TRY_RUN([
-#include <math.h>
-#include <float.h>
-int main ()
-{
-#ifdef isfinite
-#ifdef LDBL_MAX
- if (!isfinite(LDBL_MAX)) return 1;
-#endif
-#ifdef DBL_MAX
- if (!isfinite(DBL_MAX)) return 1;
-#endif
-#endif
-return 0;
-}], libgfor_cv_have_broken_isfinite=no, libgfor_cv_have_broken_isfinite=yes, [
-case "${target}" in
- hppa*-*-hpux*) libgfor_cv_have_broken_isfinite=yes ;;
- *) libgfor_cv_have_broken_isfinite=no ;;
-esac])]
- LIBS=$libgfor_check_for_broken_isfinite_save_LIBS)
-if test x"$libgfor_cv_have_broken_isfinite" = xyes; then
- AC_DEFINE(HAVE_BROKEN_ISFINITE, 1, [Define if isfinite is broken.])
-fi])
-
-dnl Check whether isnan is broken.
-dnl The most common problem is that it does not work on long doubles.
-AC_DEFUN([LIBGFOR_CHECK_FOR_BROKEN_ISNAN], [
- AC_CACHE_CHECK([whether isnan is broken],
- libgfor_cv_have_broken_isnan, [
- libgfor_check_for_broken_isnan_save_LIBS=$LIBS
- LIBS="$LIBS -lm"
- AC_TRY_RUN([
-#include <math.h>
-#include <float.h>
-int main ()
-{
-#ifdef isnan
-#ifdef LDBL_MAX
- {
- long double x;
- x = __builtin_nanl ("");
- if (!isnan(x)) return 1;
- if (isnan(LDBL_MAX)) return 1;
-#ifdef NAN
- x = (long double) NAN;
- if (!isnan(x)) return 1;
-#endif
- }
-#endif
-#ifdef DBL_MAX
- {
- double y;
- y = __builtin_nan ("");
- if (!isnan(y)) return 1;
- if (isnan(DBL_MAX)) return 1;
-#ifdef NAN
- y = (double) NAN;
- if (!isnan(y)) return 1;
-#endif
- }
-#endif
-#endif
-return 0;
-}], libgfor_cv_have_broken_isnan=no, libgfor_cv_have_broken_isnan=yes, [
-case "${target}" in
- hppa*-*-hpux*) libgfor_cv_have_broken_isnan=yes ;;
- *) libgfor_cv_have_broken_isnan=no ;;
-esac])]
- LIBS=$libgfor_check_for_broken_isnan_save_LIBS)
-if test x"$libgfor_cv_have_broken_isnan" = xyes; then
- AC_DEFINE(HAVE_BROKEN_ISNAN, 1, [Define if isnan is broken.])
-fi])
-
-dnl Check whether fpclassify is broken.
-dnl The most common problem is that it does not work on long doubles.
-AC_DEFUN([LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY], [
- AC_CACHE_CHECK([whether fpclassify is broken],
- libgfor_cv_have_broken_fpclassify, [
- libgfor_check_for_broken_fpclassify_save_LIBS=$LIBS
- LIBS="$LIBS -lm"
- AC_TRY_RUN([
-#include <math.h>
-#include <float.h>
-int main ()
-{
-#ifdef fpclassify
-#ifdef LDBL_MAX
- if (fpclassify(LDBL_MAX) == FP_NAN
- || fpclassify(LDBL_MAX) == FP_INFINITE) return 1;
-#endif
-#ifdef DBL_MAX
- if (fpclassify(DBL_MAX) == FP_NAN
- || fpclassify(DBL_MAX) == FP_INFINITE) return 1;
-#endif
-#endif
-return 0;
-}], libgfor_cv_have_broken_fpclassify=no, libgfor_cv_have_broken_fpclassify=yes, [
-case "${target}" in
- hppa*-*-hpux*) libgfor_cv_have_broken_fpclassify=yes ;;
- *) libgfor_cv_have_broken_fpclassify=no ;;
-esac])]
- LIBS=$libgfor_check_for_broken_fpclassify_save_LIBS)
-if test x"$libgfor_cv_have_broken_fpclassify" = xyes; then
- AC_DEFINE(HAVE_BROKEN_FPCLASSIFY, 1, [Define if fpclassify is broken.])
-fi])
-
dnl Check whether the st_ino and st_dev stat fields taken together uniquely
dnl identify the file within the system. This is should be true for POSIX
dnl systems; it is known to be false on mingw32.