aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2009-03-09 04:47:51 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2009-03-09 04:47:51 +0000
commitd53cb9ea605018b59e7456befb770db470759cb3 (patch)
tree1d555d944b2c451b20e578ea1f5f0f34fbc88b8c
parent18c95304c7784097fb78ea9e0a358695c9e9db34 (diff)
downloadgcc-d53cb9ea605018b59e7456befb770db470759cb3.zip
gcc-d53cb9ea605018b59e7456befb770db470759cb3.tar.gz
gcc-d53cb9ea605018b59e7456befb770db470759cb3.tar.bz2
re PR libfortran/39402 (gfortran 20090306: internal write of 0.0 with F0.3 gives **)
2009-03-08 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/39409 * io/write_float.def (output_float): Handle F0.d formatting correctly for any d when value is 0.0. From-SVN: r144718
-rw-r--r--libgfortran/ChangeLog6
-rw-r--r--libgfortran/io/write_float.def2
2 files changed, 7 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 9da50d9..5217b8c 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,9 @@
+2009-03-08 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR libfortran/39409
+ * io/write_float.def (output_float): Handle F0.d formatting correctly
+ for any d when value is 0.0.
+
2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure: Regenerate.
diff --git a/libgfortran/io/write_float.def b/libgfortran/io/write_float.def
index f94fde3..17bd784 100644
--- a/libgfortran/io/write_float.def
+++ b/libgfortran/io/write_float.def
@@ -122,7 +122,7 @@ output_float (st_parameter_dt *dtp, const fnode *f, char *buffer, size_t size,
/* Handle special cases. */
if (w == 0)
- w = 2;
+ w = d + 2;
/* For this one we choose to not output a decimal point.
F95 10.5.1.2.1 */