From: Jerry DeLisle Date: Mon, 9 Mar 2009 04:47:51 +0000 (+0000) Subject: re PR libfortran/39402 (gfortran 20090306: internal write of 0.0 with F0.3 gives... X-Git-Tag: releases/gcc-4.4.0~325 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d53cb9ea605018b59e7456befb770db470759cb3;p=thirdparty%2Fgcc.git re PR libfortran/39402 (gfortran 20090306: internal write of 0.0 with F0.3 gives **) 2009-03-08 Jerry DeLisle 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 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 9da50d9d67fa..5217b8c8c840 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2009-03-08 Jerry DeLisle + + 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 * configure: Regenerate. diff --git a/libgfortran/io/write_float.def b/libgfortran/io/write_float.def index f94fde30b702..17bd78445601 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 */