This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/59836] [4.7/4.8/4.9 Regression] Wrong outputs with rounding formats for some values.
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Jan 2014 22:08:37 +0000
- Subject: [Bug libfortran/59836] [4.7/4.8/4.9 Regression] Wrong outputs with rounding formats for some values.
- Auto-submitted: auto-generated
- References: <bug-59836-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59836
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> I will also test your patches and review and commit for you if you need.
> Please let me know.
Could you check in particular that I did not miss something when removing the
line
- nzero--;
I have not followed in detail the use of nzero.
I don't have write access so I cannot do the commit, but I can do the packaging
and the submit if it helps (I have the FSF form signed). Feel free to use the
posted patches as you like.
> I knew you were close to the solution on this one. Great job!
Thanks! Actually I have tried
- if (w > 0 && d == 0 && p == 0)
+ if (ft != FMT_F && nbefore == 0 && w > 0 && d == 0 && p == 0)
but gfortran.dg/round_3.f08 regressed and I did not catch the need for the
second part of the patch, hence the kludge in pr59774 comment 9.
I think the formats and values in comment 0, can be added to
gfortran.dg/round_3.f08
(as well as some tests for pr59774). I'ld like also to add some tests for RC
around 0.5.