[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

thenlich at users dot sourceforge.net gcc-bugzilla@gcc.gnu.org
Fri Apr 15 20:42:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602

--- Comment #5 from Thomas Henlich <thenlich at users dot sourceforge.net> 2011-04-15 20:41:02 UTC ---
(In reply to comment #4)
> OK I knew I was "looking" at it wrong. The formulas you mention we are using
> and are in write_float.def starting at line 798. The table is there as well. I
> have been exploring the code here but have not spotted it yet.  The issue could
> either be in this formula implementation or in the rounding code which is
> nearby.

Ok, found something: The table has 0.5 hardcoded instead of the correct
(rounding-mode dependent) r. And the code in line 836 (and 858?) also.



More information about the Gcc-bugs mailing list