From de51fc1b1567baa90799cf7077fbe72c1fc4dd15 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Sat, 5 Jul 2014 20:43:07 +0000 Subject: [PATCH] Restore Solaris/SPARC bootstrap * configure, config.h.in: Regenerate. * config/fpu-sysv.h: Include . From-SVN: r212307 --- libgfortran/ChangeLog | 5 +++++ libgfortran/config.h.in | 6 ++++++ libgfortran/config/fpu-sysv.h | 2 ++ libgfortran/configure | 16 ++++++++++++++++ 4 files changed, 29 insertions(+) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 239cfc33f04..9f03a5ce368 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2014-07-05 Rainer Orth + + * configure, config.h.in: Regenerate. + * config/fpu-sysv.h: Include . + 2014-07-02 Francois-Xavier Coudert * config/fpu-glibc.h: Fix comment about FE_DENORMAL. diff --git a/libgfortran/config.h.in b/libgfortran/config.h.in index 110fb6d5b9a..de7937f328a 100644 --- a/libgfortran/config.h.in +++ b/libgfortran/config.h.in @@ -396,9 +396,15 @@ /* Define to 1 if you have the `fork' function. */ #undef HAVE_FORK +/* fpresetsticky is present */ +#undef HAVE_FPRESETSTICKY + /* Define if you have fpsetmask. */ #undef HAVE_FPSETMASK +/* fpsetsticky is present */ +#undef HAVE_FPSETSTICKY + /* Define to 1 if you have the header file. */ #undef HAVE_FPTRAP_H diff --git a/libgfortran/config/fpu-sysv.h b/libgfortran/config/fpu-sysv.h index 0105cf74b8b..8d8ff329f1f 100644 --- a/libgfortran/config/fpu-sysv.h +++ b/libgfortran/config/fpu-sysv.h @@ -25,6 +25,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see /* FPU-related code for SysV platforms with fpsetmask(). */ +#include + /* BSD and Solaris systems have slightly different types and functions naming. We deal with these here, to simplify the code below. */ diff --git a/libgfortran/configure b/libgfortran/configure index f123c48dba2..d6d26db8c3f 100755 --- a/libgfortran/configure +++ b/libgfortran/configure @@ -26100,6 +26100,22 @@ _ACEOF fi +# Check whether we have fpsetsticky or fpresetsticky +ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky" +if test "x$ac_cv_func_fpsetsticky" = x""yes; then : + have_fpsetsticky=yes +$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h + +fi + +ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky" +if test "x$ac_cv_func_fpresetsticky" = x""yes; then : + have_fpresetsticky=yes +$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h + +fi + + # Check for AIX fp_trap and fp_enable ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" if test "x$ac_cv_func_fp_trap" = x""yes; then :