]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
ilogbl: Remove support for IRIX.
authorBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 20:59:31 +0000 (22:59 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 20:59:31 +0000 (22:59 +0200)
* m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Remove code for IRIX. Remove IRIX
<float.h> workaround.

ChangeLog
m4/ilogbl.m4

index 67200a17b2957e98111bfd080d20bd3da685f0c8..c19feae754ccd1d73f25e12e0bb9e7a4a79d92b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2025-09-10  Bruno Haible  <bruno@clisp.org>
 
+       ilogbl: Remove support for IRIX.
+       * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Remove code for IRIX. Remove IRIX
+       <float.h> workaround.
+
        ilogbf: Remove support for IRIX.
        * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Remove code for IRIX.
 
index 5bc06dcc552befcb86102969f1d05d1eed289a75..c015d06e52672746f6de4d2c5dacdf0338185825 100644 (file)
@@ -1,5 +1,5 @@
 # ilogbl.m4
-# serial 8
+# serial 9
 dnl Copyright (C) 2010-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,
@@ -101,23 +101,6 @@ AC_DEFUN([gl_FUNC_ILOGBL_WORKS],
 # undef LDBL_MIN_EXP
 # define LDBL_MIN_EXP DBL_MIN_EXP
 #endif
-#if defined __sgi && (LDBL_MANT_DIG >= 106)
-# if defined __GNUC__
-#  undef LDBL_MIN_EXP
-#  define LDBL_MIN_EXP DBL_MIN_EXP
-# endif
-#endif
-/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
-   runtime type conversion.  */
-#ifdef __sgi
-static long double NaNl ()
-{
-  double zero = 0.0;
-  return zero / zero;
-}
-#else
-# define NaNl() (0.0L / 0.0L)
-#endif
 volatile long double x;
 static int dummy (long double x) { return 0; }
 int main (int argc, char *argv[])
@@ -132,7 +115,7 @@ int main (int argc, char *argv[])
   }
   /* This test fails on Cygwin 3.4.6.  */
   {
-    x = NaNl ();
+    x = 0.0L / 0.0L;
     if (my_ilogbl (x) != FP_ILOGBNAN)
       result |= 2;
   }