aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2007-10-02 23:27:51 +0000
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2007-10-02 23:27:51 +0000
commite900e0ca8855d735e28e9eb5c7be4630039585c9 (patch)
tree767bdfcddd456c6be1acfc00b498e2be8ecea53f /libgfortran
parent729fd517d9bafae406f62b348bfb74e0e2f14d61 (diff)
downloadgcc-e900e0ca8855d735e28e9eb5c7be4630039585c9.zip
gcc-e900e0ca8855d735e28e9eb5c7be4630039585c9.tar.gz
gcc-e900e0ca8855d735e28e9eb5c7be4630039585c9.tar.bz2
re PR libfortran/33469 (Default formats for real input are not precise enough)
PR libfortran/33469 * io/write.c (write_real): Widen the default formats. * gfortran.dg/default_format_1.f90: New test. * gfortran.dg/default_format_2.f90: New test. * gfortran.dg/namelist_print_1.f: Adjust expected output. * gfortran.dg/real_const_3.f90: Adjust expected output. From-SVN: r128967
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/io/write.c12
2 files changed, 11 insertions, 6 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index aaa37a4..7392997 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-02 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ PR fortran/33469
+ * io/write.c (write_real): Widen the default formats.
+
2007-09-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/33400
diff --git a/libgfortran/io/write.c b/libgfortran/io/write.c
index 4792a22..84b695f 100644
--- a/libgfortran/io/write.c
+++ b/libgfortran/io/write.c
@@ -698,18 +698,18 @@ write_real (st_parameter_dt *dtp, const char *source, int length)
switch (length)
{
case 4:
- f.u.real.w = 14;
- f.u.real.d = 7;
+ f.u.real.w = 15;
+ f.u.real.d = 8;
f.u.real.e = 2;
break;
case 8:
- f.u.real.w = 23;
- f.u.real.d = 15;
+ f.u.real.w = 25;
+ f.u.real.d = 17;
f.u.real.e = 3;
break;
case 10:
- f.u.real.w = 28;
- f.u.real.d = 19;
+ f.u.real.w = 29;
+ f.u.real.d = 20;
f.u.real.e = 4;
break;
case 16: