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.
#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)
#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)
#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)
#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)
# 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,
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)
{
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)
{
#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)
{