]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
log1pf: Remove support for IRIX.
authorBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 21:01:25 +0000 (23:01 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 21:01:25 +0000 (23:01 +0200)
* m4/log1pf.m4 (gl_FUNC_LOG1PF_WORKS): Remove macro.
(gl_FUNC_LOG1PF): Don't invoke it.

ChangeLog
m4/log1pf.m4

index 10509a48f6a4f973f8742f3a0381e0a5f0259fd3..13d269ee42e7c35e0ab9c9d9b3f4db6985552522 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2025-09-10  Bruno Haible  <bruno@clisp.org>
 
+       log1pf: Remove support for IRIX.
+       * m4/log1pf.m4 (gl_FUNC_LOG1PF_WORKS): Remove macro.
+       (gl_FUNC_LOG1PF): Don't invoke it.
+
        log1p: Remove support for IRIX.
        * lib/log1p.c (log1p): Remove code for IRIX.
 
index 598fb38a0e455bfac22856aa194dd9f31f864591..4cdefce84b33685b9f2b72ec848777db8c9391dc 100644 (file)
@@ -1,5 +1,5 @@
 # log1pf.m4
-# serial 11
+# serial 12
 dnl Copyright (C) 2012-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,17 +24,8 @@ AC_DEFUN([gl_FUNC_LOG1PF],
   if test $ac_cv_func_log1pf = yes; then
     LOG1PF_LIBM="$LOG1P_LIBM"
 
-    saved_LIBS="$LIBS"
-    LIBS="$LIBS $LOG1PF_LIBM"
-    gl_FUNC_LOG1PF_WORKS
-    LIBS="$saved_LIBS"
-    case "$gl_cv_func_log1pf_works" in
-      *yes) ;;
-      *) REPLACE_LOG1PF=1 ;;
-    esac
-
     m4_ifdef([gl_FUNC_LOG1PF_IEEE], [
-      if test $gl_log1pf_required = ieee && test $REPLACE_LOG1PF = 0; then
+      if test $gl_log1pf_required = ieee; then
         AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
         AC_CACHE_CHECK([whether log1pf works according to ISO C 99 with IEC 60559],
           [gl_cv_func_log1pf_ieee],
@@ -90,37 +81,3 @@ int main (int argc, char *argv[])
   fi
   AC_SUBST([LOG1PF_LIBM])
 ])
-
-dnl Test whether log1pf() works.
-dnl On IRIX 6.5, log1pf(-1.0f) returns +Infinity instead of -Infinity.
-AC_DEFUN([gl_FUNC_LOG1PF_WORKS],
-[
-  AC_REQUIRE([AC_PROG_CC])
-  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
-  AC_CACHE_CHECK([whether log1pf works], [gl_cv_func_log1pf_works],
-    [
-      AC_RUN_IFELSE(
-        [AC_LANG_SOURCE([[
-#include <math.h>
-volatile float x;
-float y;
-int main ()
-{
-  x = -1.0f;
-  y = log1pf (x);
-  if (!(y + y == y && y < 0.0f))
-    return 1;
-  return 0;
-}
-]])],
-        [gl_cv_func_log1pf_works=yes],
-        [gl_cv_func_log1pf_works=no],
-        [case "$host_os" in
-           irix*)             gl_cv_func_log1pf_works="guessing no" ;;
-                              # Guess yes on native Windows.
-           mingw* | windows*) gl_cv_func_log1pf_works="guessing yes" ;;
-           *)                 gl_cv_func_log1pf_works="guessing yes" ;;
-         esac
-        ])
-    ])
-])