]> gcc.gnu.org Git - gcc.git/commit
PR 93592 - Invalid UP/DOWN rounding with EN descriptor.
authorDominique d'Humieres <dhumieres.dominique@free.fr>
Fri, 24 Jul 2020 18:07:12 +0000 (20:07 +0200)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 25 Jul 2020 10:39:07 +0000 (12:39 +0200)
commitb45f51d467c6c192c70f57e517bec3a3c0c9d1f4
tree5aed2da8cbfa8c98ef42937adb2e37e038f9beea
parent8dafc134683a1aa5538b99d1677dec72779cd45c
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)
gcc/testsuite/gfortran.dg/fmt_en.f90
gcc/testsuite/gfortran.dg/fmt_en_rd.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/fmt_en_rn.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/fmt_en_ru.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/fmt_en_rz.f90 [new file with mode: 0644]
libgfortran/io/write_float.def
This page took 0.065528 seconds and 6 git commands to generate.