bug-diffutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-diffutils] gnulib test-float failure on ppc


From: Jim Meyering
Subject: Re: [bug-diffutils] gnulib test-float failure on ppc
Date: Tue, 04 Oct 2011 13:57:02 +0200

Tim Waugh wrote:
> 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

Hi Tim,

Thanks for the report.

That was fixed by a recent change by Bruno Haible in gnulib, so I've
updated diffutils to use the latest from gnulib and will push that shortly.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]