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

Jerry DeLisle jvdelisle@frontier.com
Sat Feb 19 01:41:00 GMT 2011


This small patch adjusts the processor generated width for F0.d formatting to 
accommodate negative signs on zero.

Regression tested on x86-64. Updated test case provided.

OK for trunk?

Regards,

Jerry

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

	PR libgfortran/47567
	* io/write_float.def (output_float): Adjust width for F0.d to
	allow space for negative signs on zero.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr47567.diff
Type: text/x-patch
Size: 448 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110219/bda0dfe7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fmt_f0_1.f90
Type: text/x-fortran
Size: 1338 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110219/bda0dfe7/attachment-0001.bin>


More information about the Fortran mailing list