This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, libgfortran] Pr47567 Wrong output for small absolute values with F editing
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jerry DeLisle <jvdelisle at frontier dot com>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc patches <gcc-patches at gcc dot gnu dot org>, thenlich at users dot sourceforge dot net
- Date: Mon, 28 Feb 2011 21:35:43 -0800
- Subject: Re: [patch, libgfortran] Pr47567 Wrong output for small absolute values with F editing
- References: <4D6AF7F7.6080509@frontier.com>
On Sun, Feb 27, 2011 at 5:18 PM, Jerry DeLisle <jvdelisle@frontier.com> wrote:
> Hi all,
>
> I am painfully aware that we have gone through a few iterations here. ?Once
> again, I hope this is the last of it.
>
> This patch does some code clean-up. I have consolidated the handling of the
> special case of F0.d in one place and moved the special case of zero values
> to after rounding has occurred. ?This way, values not zero, but rounded down
> to zero are handled correctly.
>
> Regression tested on x86-64. ?The comprehensive test case is from the PR
> reporter, Thomas Henlich. Thanks Thomas for that test case.
>
> OK for trunk?
>
> Jerry
>
> 2011-02-27 ?Jerry DeLisle ?<jvdelisle@gcc.gnu.org>
>
> ? ? ? ?PR libgfortran/47567
> ? ? ? ?* io/write_float.def (output_float): Move handling of w = 0 to after
> ? ? ? ?output rounding. Check for zero and set zero_flag accordingly. Set
> ? ? ? ?width according to zero_flag. Add better comments.
>
It doesn't work. I opened:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47933
--
H.J.