From: Bruno Haible Date: Wed, 10 Sep 2025 20:58:03 +0000 (+0200) Subject: ceil, rint, round, trunc, *-ieee: Remove support for IRIX. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c434544ed703950f49b32dcc5eec5047d0db8221;p=thirdparty%2Fgnulib.git ceil, rint, round, trunc, *-ieee: Remove support for IRIX. * m4/minus-zero.m4 (gl_FLOAT_MINUS_ZERO_CODE, gl_DOUBLE_MINUS_ZERO_CODE, gl_LONG_DOUBLE_MINUS_ZERO_CODE): Remove code for IRIX cc. * lib/ceil.c (MINUS_ZERO): Likewise. * lib/rint.c (MINUS_ZERO): Likewise. * lib/round.c (MINUS_ZERO): Likewise. * lib/trunc.c (MINUS_ZERO): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 58a1df4821..614dbbe5d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2025-09-10 Bruno Haible + ceil, rint, round, trunc, *-ieee: Remove support for IRIX. + * m4/minus-zero.m4 (gl_FLOAT_MINUS_ZERO_CODE, gl_DOUBLE_MINUS_ZERO_CODE, + gl_LONG_DOUBLE_MINUS_ZERO_CODE): Remove code for IRIX cc. + * lib/ceil.c (MINUS_ZERO): Likewise. + * lib/rint.c (MINUS_ZERO): Likewise. + * lib/round.c (MINUS_ZERO): Likewise. + * lib/trunc.c (MINUS_ZERO): Likewise. + math-h: Remove support for IRIX. * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Remove code for IRIX. (cbrtf): Test HAVE_CBRTF instead of HAVE_DECL_CBRTF. diff --git a/lib/ceil.c b/lib/ceil.c index 660c048452..6be3c18a6c 100644 --- a/lib/ceil.c +++ b/lib/ceil.c @@ -48,7 +48,7 @@ #endif /* -0.0. See minus-zero.h. */ -#if defined __hpux || defined __sgi || defined __ICC +#if defined __hpux || defined __ICC # define MINUS_ZERO (-MIN * MIN) #else # define MINUS_ZERO L_(-0.0) diff --git a/lib/rint.c b/lib/rint.c index 172a4124f9..4c1c3a7a16 100644 --- a/lib/rint.c +++ b/lib/rint.c @@ -47,7 +47,7 @@ #endif /* -0.0. See minus-zero.h. */ -#if defined __hpux || defined __sgi || defined __ICC +#if defined __hpux || defined __ICC # define MINUS_ZERO (-MIN * MIN) #else # define MINUS_ZERO L_(-0.0) diff --git a/lib/round.c b/lib/round.c index 4d12206b21..b593fda60b 100644 --- a/lib/round.c +++ b/lib/round.c @@ -58,7 +58,7 @@ #endif /* -0.0. See minus-zero.h. */ -#if defined __hpux || defined __sgi || defined __ICC +#if defined __hpux || defined __ICC # define MINUS_ZERO (-MIN * MIN) #else # define MINUS_ZERO L_(-0.0) diff --git a/lib/trunc.c b/lib/trunc.c index ff9e2a88ca..9534a4a800 100644 --- a/lib/trunc.c +++ b/lib/trunc.c @@ -48,7 +48,7 @@ #endif /* -0.0. See minus-zero.h. */ -#if defined __hpux || defined __sgi || defined __ICC +#if defined __hpux || defined __ICC # define MINUS_ZERO (-MIN * MIN) #else # define MINUS_ZERO L_(-0.0) diff --git a/m4/minus-zero.m4 b/m4/minus-zero.m4 index 5e5c7db3da..23c9701a83 100644 --- a/m4/minus-zero.m4 +++ b/m4/minus-zero.m4 @@ -1,5 +1,5 @@ # minus-zero.m4 -# serial 2 +# serial 3 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, @@ -18,7 +18,7 @@ AC_DEFUN([gl_FLOAT_MINUS_ZERO_CODE], ICC 10.0 has a bug when optimizing the expression -zero. The expression -FLT_MIN * FLT_MIN does not work when cross-compiling to PowerPC on Mac OS X 10.5. */ -#if defined __hpux || defined __sgi || defined __ICC +#if defined __hpux || defined __ICC static float compute_minus_zerof (void) { @@ -39,7 +39,7 @@ AC_DEFUN([gl_DOUBLE_MINUS_ZERO_CODE], ICC 10.0 has a bug when optimizing the expression -zero. The expression -DBL_MIN * DBL_MIN does not work when cross-compiling to PowerPC on Mac OS X 10.5. */ -#if defined __hpux || defined __sgi || defined __ICC +#if defined __hpux || defined __ICC static double compute_minus_zerod (void) { @@ -61,11 +61,10 @@ AC_DEFUN([gl_LONG_DOUBLE_MINUS_ZERO_CODE], #endif /* minus_zerol represents the value -0.0L. */ /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0L. - IRIX cc can't put -0.0L into .data, but can compute at runtime. ICC 10.0 has a bug when optimizing the expression -zero. The expression -LDBL_MIN * LDBL_MIN does not work when cross-compiling to PowerPC on Mac OS X 10.5. */ -#if defined __hpux || defined __sgi || defined __ICC +#if defined __hpux || defined __ICC static long double compute_minus_zerol (void) {