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

ChangeLog
m4/isfinite.m4

index c19feae754ccd1d73f25e12e0bb9e7a4a79d92b7..faf70183e374374bdf377a33d6f56f812e82bba6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2025-09-10  Bruno Haible  <bruno@clisp.org>
 
+       isfinite: Remove support for IRIX.
+       * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Remove code for IRIX.
+
        ilogbl: Remove support for IRIX.
        * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Remove code for IRIX. Remove IRIX
        <float.h> workaround.
index 56d9b72ee93ad5c5af7f52868cd6907175079956..af3cf73ca6a146522a70ed726811fc4a43dbead0 100644 (file)
@@ -1,5 +1,5 @@
 # isfinite.m4
-# serial 20
+# serial 21
 dnl Copyright (C) 2007-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,
@@ -61,17 +61,7 @@ AC_DEFUN([gl_ISFINITEL_WORKS],
   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
 typedef union { unsigned int word[NWORDS]; long double value; }
         memory_long_double;
-/* 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
+#define NaNl() (0.0L / 0.0L)
 int main ()
 {
   int result = 0;