]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libfortran/60468 (./fpu-target.h:93:3: error: unknown type name 'choke')
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 15 Jun 2014 09:44:04 +0000 (09:44 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 15 Jun 2014 09:44:04 +0000 (09:44 +0000)
PR libfortran/60468
* configure.ac: Include <math.h> when checking for
fp_except_t and fp_rnd_t types.
* configure: Regenerate.

From-SVN: r211685

libgfortran/ChangeLog
libgfortran/configure
libgfortran/configure.ac

index 9d75329644526bb13b2990c57c17ea896bf93ae6..f610ba146e1d965f53967aea1ece6f995ad479d5 100644 (file)
@@ -1,3 +1,10 @@
+2014-06-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       PR libfortran/60468
+       * configure.ac: Include <math.h> when checking for fp_except_t
+       and fp_rnd_t types.
+       * configure: Regenerate.
+
 2014-06-08  Janne Blomqvist  <jb@gcc.gnu.org>
 
        PR libfortran/56981
index 9841ebc0ae324947c853a14c70261a51244f989c..05ab1683e02f252a6d8e9649d55deb4c04fa78fc 100755 (executable)
@@ -26042,7 +26042,10 @@ $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
 
   fi
 
-ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "#include <ieeefp.h>
+ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
+#include <ieeefp.h>
+#include <math.h>
+
 "
 if test "x$ac_cv_type_fp_except" = x""yes; then :
 
@@ -26052,7 +26055,10 @@ _ACEOF
 
 
 fi
-ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "#include <ieeefp.h>
+ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
+#include <ieeefp.h>
+#include <math.h>
+
 "
 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
 
@@ -26063,7 +26069,10 @@ _ACEOF
 
 fi
 
-ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "#include <ieeefp.h>
+ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
+#include <ieeefp.h>
+#include <math.h>
+
 "
 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
 
@@ -26073,7 +26082,10 @@ _ACEOF
 
 
 fi
-ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "#include <ieeefp.h>
+ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
+#include <ieeefp.h>
+#include <math.h>
+
 "
 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
 
index ab4c497e5f3bffb0450163428500db440339f13b..57e26ce9e48ec4eb31cc7130d62757043b034cf5 100644 (file)
@@ -521,8 +521,14 @@ fi
 
 # Check for SysV fpsetmask
 LIBGFOR_CHECK_FPSETMASK
-AC_CHECK_TYPES([fp_except,fp_except_t], [], [], [[#include <ieeefp.h>]])
-AC_CHECK_TYPES([fp_rnd,fp_rnd_t], [], [], [[#include <ieeefp.h>]])
+AC_CHECK_TYPES([fp_except,fp_except_t], [], [], [[
+#include <ieeefp.h>
+#include <math.h>
+]])
+AC_CHECK_TYPES([fp_rnd,fp_rnd_t], [], [], [[
+#include <ieeefp.h>
+#include <math.h>
+]])
 
 # Check for AIX fp_trap and fp_enable
 AC_CHECK_FUNC([fp_trap],[have_fp_trap=yes AC_DEFINE([HAVE_FP_TRAP],[1],[fp_trap is present])])