[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test-float fails on ppc64 because DBL_MIN_EXP < LDBL_MIN_EXP
From: |
Pádraig Brady |
Subject: |
Re: test-float fails on ppc64 because DBL_MIN_EXP < LDBL_MIN_EXP |
Date: |
Wed, 31 Aug 2011 17:01:28 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0 |
On 08/31/2011 04:48 PM, Jim Meyering wrote:
> The test-float test is failing on ppc64 with:
>
> gcc version 4.4.4 20100630 (Red Hat 4.4.4-10) (GCC)
> (albeit an aging Fedora 12 system)
>
> due to the failure of this assertion:
>
> ASSERT (LDBL_MIN_EXP <= DBL_MIN_EXP);
>
> It fails because of these numbers:
>
> $ :|gcc -dD -E -include stddef.h -|grep -E 'L?DBL_MIN_EXP'
> #define __DBL_MIN_EXP__ (-1021)
> #define __LDBL_MIN_EXP__ (-968)
>
> I propose to comment out that test for now, just prior
> to the coreutils-8.13 pre-release snapshot.
Looks good. That surprising behavior caught me out in coreutils too:
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=766ec503
cheers,
Pádraig.