This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, libgfortran] Bug 57822 - I/O: "(g0)" wrongly prints "E+0000"
- From: Jerry DeLisle <jvdelisle at charter dot net>
- To: gfortran <fortran at gcc dot gnu dot org>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 10 Feb 2015 20:46:33 -0800
- Subject: Re: [patch, libgfortran] Bug 57822 - I/O: "(g0)" wrongly prints "E+0000"
- Authentication-results: sourceware.org; auth=none
- References: <54D80914 dot 80500 at charter dot net>
On 02/08/2015 05:10 PM, Jerry DeLisle wrote:
The attached patch fixes this by checking for the case when we are doing g0
editing and the exponent is 0.
Regression tested on X86-64. For the larger kinds, we are on a different code
path out of necessity, so we need to address this corner case.
I committed this followup to correct an omission I made.
Sending ChangeLog
Sending io/write_float.def
Transmitting file data ..
Committed revision 220606.
2015-02-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/57822
* io/write_float.def (output_float): Apply fix of previous patch
to correctly calculate the exponent number of digits and take
care of wide character output.