From: Bruno Haible Date: Wed, 10 Sep 2025 20:59:31 +0000 (+0200) Subject: ilogbl: Remove support for IRIX. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e7ba740a3bbbafb3f695161628789a1120b744e;p=thirdparty%2Fgnulib.git ilogbl: Remove support for IRIX. * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Remove code for IRIX. Remove IRIX workaround. --- diff --git a/ChangeLog b/ChangeLog index 67200a17b2..c19feae754 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2025-09-10 Bruno Haible + ilogbl: Remove support for IRIX. + * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Remove code for IRIX. Remove IRIX + workaround. + ilogbf: Remove support for IRIX. * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Remove code for IRIX. diff --git a/m4/ilogbl.m4 b/m4/ilogbl.m4 index 5bc06dcc55..c015d06e52 100644 --- a/m4/ilogbl.m4 +++ b/m4/ilogbl.m4 @@ -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; }