This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: PATCH: Fix many 64-bit Solaris 11/x86 libgfortran testsuite failures
- From: Tobias Burnus <burnus at net-b dot de>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Wed, 24 Feb 2010 16:16:59 +0100
- Subject: Re: PATCH: Fix many 64-bit Solaris 11/x86 libgfortran testsuite failures
- References: <yddpr3uohh1.fsf@CeBiTec.Uni-Bielefeld.DE>
On 02/12/2010 03:09 PM, Rainer Orth wrote:
> After some debugging, I found that the sign_bit in io/write_float.def
> (WRITE_FLOAT) is set incorrectly. At first, I supposed that the signbit
> definition in <iso/math_c99.h> were at fault, but so far I've been
> unable to find any.
>
> It turned out that invoking __builtin_signbit fixes the problem; since
> there are many cases where libgfortran uses GCC builtins directly, I
> cannot imagine that this should cause other problems.
>
> With that change, 64-bit libgfortran testsuite results are massively
> improved: the only remaining failures are the spurious stat_[12].f90
> failures already reported in PR fortran/42900, and some LTO failures to
> be investigated separately.
>
> Ok for mainline?
>
OK though it would be interesting to understand why "signbit" fails as
it might affect user code (written in C).
Tobias