]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
nan: Remove support for IRIX.
authorBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 21:01:42 +0000 (23:01 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 21:01:54 +0000 (23:01 +0200)
* lib/nan.h (NaNl): Remove code for IRIX.

ChangeLog
lib/nan.h

index c109e4127efed88d3ad361464abd33da722c8960..a1297c554c4f9564cbf7a64384ea956eb6b01a1e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2025-09-10  Bruno Haible  <bruno@clisp.org>
 
+       nan: Remove support for IRIX.
+       * lib/nan.h (NaNl): Remove code for IRIX.
+
        logbl: Remove support for IRIX.
        * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Remove IRIX <float.h> workaround.
 
index e22ff9f9baf1059f05b913f11f282824e0f32612..db3d960a8e8b1babf0f20c89a673ae612138f10d 100644 (file)
--- a/lib/nan.h
+++ b/lib/nan.h
@@ -71,22 +71,14 @@ NaNd ()
 
 /* NaNl () returns a 'long double' not-a-number.  */
 
-/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
-   runtime type conversion.
-   The Microsoft MSVC 9 compiler chokes on the expression 0.0L / 0.0L.
+/* The Microsoft MSVC 9 compiler chokes on the expression 0.0L / 0.0L.
    The IBM XL C compiler on z/OS complains.
    PGI 16.10 complains.
    Avoid possible incorrect constant-folding on mips.  */
-#ifdef __sgi
-static long double NaNl ()
-{
-  double zero = 0.0;
-  return zero / zero;
-}
-#elif (defined _MSC_VER \
-       || (defined __MVS__ && defined __IBMC__) \
-       || defined __PGI \
-       || defined __mips__)
+#if (defined _MSC_VER \
+     || (defined __MVS__ && defined __IBMC__) \
+     || defined __PGI \
+     || defined __mips__)
 static long double
 NaNl ()
 {