This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/48906] Wrong rounding results with -m32
- From: "thenlich at users dot sourceforge.net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Jun 2011 17:02:09 +0000
- Subject: [Bug libfortran/48906] Wrong rounding results with -m32
- Auto-submitted: auto-generated
- References: <bug-48906-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48906
--- Comment #36 from Thomas Henlich <thenlich at users dot sourceforge.net> 2011-06-10 17:01:34 UTC ---
(In reply to comment #34)
> Additional note: The standard states:
>
> "Let N be the magnitude of the internal value"
>
> The internal value is to be used to determine the conversion to F formatting. I
> think this adds to my point.
>
> I wonder if the standards committee knew the thresholds selected do not have an
> exact binary representation so that the internal values will always be above or
> below it.
Not always (e.g. 99.5 is the exact internal value), but it many cases, yes.
This and other problems with G editing will be fixed in the standard soon, if
all goes well.
I helped to prepare a request for this, which has now been submitted:
http://j3-fortran.org/doc/year/2011/11-174.txt