This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/63352] problem with fmt_g0_1.f08 on i386-pc-solaris2.11
- From: "richard at netbsd dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Oct 2014 17:14:00 +0000
- Subject: [Bug target/63352] problem with fmt_g0_1.f08 on i386-pc-solaris2.11
- Auto-submitted: auto-generated
- References: <bug-63352-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63352
--- Comment #20 from Richard PALO <richard at netbsd dot org> ---
>From what I've been able to gather, 'f' precision 17 & 18 incorrectly terminate
with a '2' where they seemingly need be '1' and '5' respectfully
(along with corresponding 'e' with precision 16 & 17).
The default rounding is FE_TONEAREST on illumos. The other modes seem okay.
Therefore I filed https://www.illumos.org/issues/5224 (with an updated version
of the test program).
BTW, on a sidenote, with the test program on NetBSD (6.1) I notice that
rounding mode seems to be completely ignored. Does gnu-c runtime expect correct
behaviour?
(NB I made a version of the test program to avoid any constant 1.0/3.0 being
used)... It would be interesting to know about other platforms...
I came across a sourceware bug where this was supposedly fixed
(https://sourceware.org/bugzilla/show_bug.cgi?id=5044)