[Bug libfortran/93592] Invalid UP/DOWN rounding with EN descriptor
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jul 25 10:58:49 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93592
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Thomas Kथà¤nig
<tkoenig@gcc.gnu.org>:
https://gcc.gnu.org/g:eca316afa46907e6b0e1513ecbc3010aaf2590f3
commit r9-8765-geca316afa46907e6b0e1513ecbc3010aaf2590f3
Author: Dominique d'Humieres <dhumieres.dominique@free.fr>
Date: Fri Jul 24 20:07:12 2020 +0200
PR 93592 - Invalid UP/DOWN rounding with EN descriptor.
The fix is obvious (I have added a comment). The tests are probably
an overkill, but it does not hurt.
libgfortran/ChangeLog:
PR fortran/93592
* io/write_float.def (build_float_string): Do not reset
nbefore for FMT_F and FMT_EN.
gcc/testsuite/ChangeLog:
PR fortran/93592
* gfortran.dg/fmt_en.f90: Adjust test.
* gfortran.dg/fmt_en_rd.f90: New test.
* gfortran.dg/fmt_en_rn.f90: New test.
* gfortran.dg/fmt_en_ru.f90: New test.
* gfortran.dg/fmt_en_rz.f90: New test.
(cherry picked from commit 05e0971bcf94a481cbfa2731484f024a67dbd4a5)
More information about the Gcc-bugs
mailing list