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

ChangeLog
m4/fma.m4

index e9e3eb12dff3b0a6a262a2ef9663f1a69750e8eb..013c047355b26a02c4a8553945487ca0b3cc7cca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2025-09-10  Bruno Haible  <bruno@clisp.org>
 
+       fma: Remove support for IRIX.
+       * m4/fma.m4 (gl_FUNC_FMA): Don't test whether fma is declared.
+
        fabsl: Remove support for IRIX.
        * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Remove macro.
        (gl_FUNC_FABSL): Don't invoke it.
index e928755080bc19f2a5308aa00b6911852bdc8eb3..5a1c014018ec848cefd2b5cd34c85df9588bfa5a 100644 (file)
--- a/m4/fma.m4
+++ b/m4/fma.m4
@@ -1,5 +1,5 @@
 # fma.m4
-# serial 8
+# serial 9
 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,
@@ -20,16 +20,10 @@ AC_DEFUN([gl_FUNC_FMA],
     ])
   if test $gl_cv_func_fma_no_libm = yes \
      || test $gl_cv_func_fma_in_libm = yes; then
-    dnl Also check whether it's declared.
-    dnl IRIX 6.5 has fma() in libm but doesn't declare it in <math.h>,
-    dnl and the function is buggy.
-    AC_CHECK_DECL([fma], , [REPLACE_FMA=1], [[#include <math.h>]])
-    if test $REPLACE_FMA = 0; then
-      gl_FUNC_FMA_WORKS
-      case "$gl_cv_func_fma_works" in
-        *no) REPLACE_FMA=1 ;;
-      esac
-    fi
+    gl_FUNC_FMA_WORKS
+    case "$gl_cv_func_fma_works" in
+      *no) REPLACE_FMA=1 ;;
+    esac
   else
     HAVE_FMA=0
   fi