[Patch, libgfortran] Improvement to float output
Mon Apr 3 07:02:00 GMT 2006
The attached patch checks for zero precision of formatted output of floats and
outputs asterisks for e,g, and d formats.
With the following program gfortran currently gives a runtime internal error
Internal Error: printf is broken
Which is not true.
50 FORMAT (g20.0)
print '(a)', "01234567890123456789"
end program test
I would count the fix as simple and obvious. With this patch, the output is:
This follows ifort example.
I will commit to trunk as obvious in a day or so unless objections.
NIST tested, regression tested.
2006-04-03 Jerry DeLisle <firstname.lastname@example.org>
* io/write.c (output_float): Add test for case of zero digits
specified in fmt_d, fmt_e, and fmt_g and output asterisks.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 764 bytes
Desc: not available
More information about the Gcc-patches