]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
fmal: Remove support for IRIX.
authorBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 20:59:16 +0000 (22:59 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 20:59:16 +0000 (22:59 +0200)
* m4/fmal.m4 (gl_FUNC_FMAL): Don't test whether fmal is declared.
(gl_FUNC_FMAL_WORKS): Remove IRIX <float.h> workaround.

ChangeLog
m4/fmal.m4

index c17ab474fd2d7ca808e776970aafae35b1e64ff6..3f901644d77bd43dbf99893f50edea5491213936 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2025-09-10  Bruno Haible  <bruno@clisp.org>
 
+       fmal: Remove support for IRIX.
+       * m4/fmal.m4 (gl_FUNC_FMAL): Don't test whether fmal is declared.
+       (gl_FUNC_FMAL_WORKS): Remove IRIX <float.h> workaround.
+
        fmaf: Remove support for IRIX.
        * m4/fmaf.m4 (gl_FUNC_FMAF): Don't test whether fmaf is declared.
 
index f8267cdbecd9f003d4aebfa2bafb2b6568ab98f0..78be5e956bc6c32b65e870143322b5fabba4ae93 100644 (file)
@@ -1,5 +1,5 @@
 # fmal.m4
-# serial 13
+# serial 14
 dnl Copyright (C) 2011-2025 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -24,16 +24,10 @@ AC_DEFUN([gl_FUNC_FMAL],
     ])
   if test $gl_cv_func_fmal_no_libm = yes \
      || test $gl_cv_func_fmal_in_libm = yes; then
-    dnl Also check whether it's declared.
-    dnl IRIX 6.5 has fmal() in libm but doesn't declare it in <math.h>,
-    dnl and the function is buggy.
-    AC_CHECK_DECL([fmal], , [REPLACE_FMAL=1], [[#include <math.h>]])
-    if test $REPLACE_FMAL = 0; then
-      gl_FUNC_FMAL_WORKS
-      case "$gl_cv_func_fmal_works" in
-        *no) REPLACE_FMAL=1 ;;
-      esac
-    fi
+    gl_FUNC_FMAL_WORKS
+    case "$gl_cv_func_fmal_works" in
+      *no) REPLACE_FMAL=1 ;;
+    esac
   else
     HAVE_FMAL=0
   fi
@@ -103,14 +97,6 @@ AC_DEFUN([gl_FUNC_FMAL_WORKS],
 # undef LDBL_MIN_EXP
 # define LDBL_MIN_EXP DBL_MIN_EXP
 #endif
-#if defined __sgi && (LDBL_MANT_DIG >= 106)
-# undef LDBL_MANT_DIG
-# define LDBL_MANT_DIG 106
-# if defined __GNUC__
-#  undef LDBL_MIN_EXP
-#  define LDBL_MIN_EXP DBL_MIN_EXP
-# endif
-#endif
 long double (* volatile my_fmal) (long double, long double, long double) = fmal;
 long double p0 = 0.0L;
 int main()