This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/67419] gfortran.dg/large_real_kind_2.F90 FAILs
- From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 01 Sep 2015 13:25:45 +0000
- Subject: [Bug fortran/67419] gfortran.dg/large_real_kind_2.F90 FAILs
- Auto-submitted: auto-generated
- References: <bug-67419-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67419
--- Comment #9 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #7 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
> (In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #5)
>> If I drop the __builtin_ and include <stdio.h> and <math.h> instead, I
>> get the expected
>
> Then the math.h header is playing tricks and GCC is not aware. This need to be
> fixed in the solaris back-end (the same sort of thing happened with darwin in
> the past, see darwin_patch_builtin in gcc/config/darwin.c).
>
> Best bet is to check in math.h how sqrtl() is defined. And then check the
> assembly code for both the __builtin_sqrtl() and the header-defined sqrtl().
That's what I'll do next, together with comparing S11 and S12 and -O0
with -O1.
Thanks.
Rainer