diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2007-02-23 05:43:16 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2007-02-23 05:43:16 +0000 |
commit | 9014618cb9a6101dbd31f38a9e83d839da868934 (patch) | |
tree | 002c176b369de590acfdb905fdac6b84497445fc /libgfortran | |
parent | 7a2a25ab4f30cc831c27f6f5cf22fc4be858d0a5 (diff) | |
download | gcc-9014618cb9a6101dbd31f38a9e83d839da868934.zip gcc-9014618cb9a6101dbd31f38a9e83d839da868934.tar.gz gcc-9014618cb9a6101dbd31f38a9e83d839da868934.tar.bz2 |
re PR fortran/30910 ([Regression 4.2, 4.3] Gfortran: ES format not quite right...)
2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/30910
* io/write.c (output_float): Add condition of format F only for
special case rounding with zero precision.
From-SVN: r122250
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
-rw-r--r-- | libgfortran/io/write.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 695cf94..11a2125 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libgfortran/30910 + * io/write.c (output_float): Add condition of format F only for + special case rounding with zero precision. + 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/30533 diff --git a/libgfortran/io/write.c b/libgfortran/io/write.c index 9ff4804..2a81d27 100644 --- a/libgfortran/io/write.c +++ b/libgfortran/io/write.c @@ -488,7 +488,7 @@ output_float (st_parameter_dt *dtp, const fnode *f, GFC_REAL_LARGEST value) value = -value; /* Special case when format specifies no digits after the decimal point. */ - if (d == 0) + if (d == 0 && ft == FMT_F) { if (value < 0.5) value = 0.0; |