[patch,libgfortran] PR47567 Wrong output for small absolute values with F editing

Jerry DeLisle jvdelisle@frontier.com
Wed Feb 23 05:04:00 GMT 2011


Hi all,

After a lot of thought and the persistence of the OP, I think now the right 
thing to do is to get rid of the special handling we have for a zero F editing 
with width of one.  Otherwise, we add additional special handling for width 2.

The attached patch does this and simplifies the code.

Regression tested on x86-64. Revised test case attached.

OK for trunk?

Jerry

2011-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47567
	* io/write_float.def (output_float): Remove special case handling of
	zero with width 1.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fmt_f0_1.f90
Type: text/x-fortran
Size: 1728 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110223/b7d7b98b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr47567-3.diff
Type: text/x-patch
Size: 805 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110223/b7d7b98b/attachment-0001.bin>


More information about the Fortran mailing list