[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-diffutils] gnulib test-float failure on ppc
From: |
Tim Waugh |
Subject: |
[bug-diffutils] gnulib test-float failure on ppc |
Date: |
Thu, 22 Sep 2011 17:51:23 +0100 |
Hi,
I'm seeing the gnulib test-float test fail on PPC (with exit status 134,
i.e. SIGFPE) with the gnulib shipped along with diffutils-3.2.
This patch works around it:
diff -up diffutils-3.2/gnulib-tests/test-float.c.mantdig
diffutils-3.2/gnulib-tests/test-float.c
--- diffutils-3.2/gnulib-tests/test-float.c.mantdig 2011-09-02
00:38:42.000000000 +0200
+++ diffutils-3.2/gnulib-tests/test-float.c 2011-09-22 11:12:53.142761914
+0200
@@ -325,7 +325,11 @@ test_long_double (void)
int n;
ASSERT (m + m > m);
+#if (defined _ARCH_PPC || defined _POWER)
+ for (n = 0; n <= 2 * DBL_MANT_DIG; n++)
+#else
for (n = 0; n <= 2 * LDBL_MANT_DIG; n++)
+#endif
{
volatile long double pow2_n = pow2l (n); /* 2^n */
volatile long double x = m + (m / pow2_n);
Here's the original bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=733536
Tim.
*/
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-diffutils] gnulib test-float failure on ppc,
Tim Waugh <=