From: Bruno Haible Date: Wed, 10 Sep 2025 21:01:42 +0000 (+0200) Subject: nan: Remove support for IRIX. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c09cd4c97e256ef0de734cc9fdfe3802d3beb916;p=thirdparty%2Fgnulib.git nan: Remove support for IRIX. * lib/nan.h (NaNl): Remove code for IRIX. --- diff --git a/ChangeLog b/ChangeLog index c109e4127e..a1297c554c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2025-09-10 Bruno Haible + 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 workaround. diff --git a/lib/nan.h b/lib/nan.h index e22ff9f9ba..db3d960a8e 100644 --- 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 () {