]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
ceil, rint, round, trunc, *-ieee: Remove support for IRIX.
authorBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 20:58:03 +0000 (22:58 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 20:58:18 +0000 (22:58 +0200)
* 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.

ChangeLog
lib/ceil.c
lib/rint.c
lib/round.c
lib/trunc.c
m4/minus-zero.m4

index 58a1df4821235d516eeb7dc8b22376062835e360..614dbbe5d7785a67da1722c2bc62f7d44252a532 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2025-09-10  Bruno Haible  <bruno@clisp.org>
 
+       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.
index 660c048452e2b725019a64627f62517911e7b8fa..6be3c18a6ce2499cc5f25d4333c83db3ac1b7850 100644 (file)
@@ -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)
index 172a4124f95b34fafeac8061ba15f78e1eee6d66..4c1c3a7a16fc455dc685dfea69ea9f6b36945ed1 100644 (file)
@@ -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)
index 4d12206b2131e8a2a99d00804da37288756b0d26..b593fda60bcccda6be8f7a0f648f551ead0a76e0 100644 (file)
@@ -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)
index ff9e2a88caf5613ee5c43494b7f9cca384b29338..9534a4a8008d362f835cf7ae9fd9a27263353b07 100644 (file)
@@ -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)
index 5e5c7db3daf659cd9e8cb393cda0d112870df675..23c9701a8383d3a35d699d5f91a41582f62a1407 100644 (file)
@@ -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)
 {