diff options
author | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-19 15:10:55 +0000 |
---|---|---|
committer | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-19 15:10:55 +0000 |
commit | 5577eaa092977ebac84393c64c2f542d1a80ce4d (patch) | |
tree | 8afa06afbe23a76cab10cdd4904f9b5d5ee7631b /libgfortran | |
parent | c94a82e9196ac4725f6d03df255fee2d8f54bbd3 (diff) | |
download | ppe42-gcc-5577eaa092977ebac84393c64c2f542d1a80ce4d.tar.gz ppe42-gcc-5577eaa092977ebac84393c64c2f542d1a80ce4d.zip |
2011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/47567
* io/write_float.def (output_float): Adjust width for F0.d to
allow space for negative signs on zero.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170318 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 8 | ||||
-rw-r--r-- | libgfortran/io/write_float.def | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 7371e8e2be1..d53329daae6 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,6 +1,12 @@ -2011-02-16 Jerry DeLisle <jvdelisle@gcc.gnu.org> +2011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/47567 + * io/write_float.def (output_float): Adjust width for F0.d to + allow space for negative signs on zero. + +2011-02-16 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libgfortran/47667 * io/list_read.c (read_logical): Check for end of line before calling eat_line. (read_integer): Likewise. (parse_real): Don't unget the separator. Check for end of line before calling eat_line. diff --git a/libgfortran/io/write_float.def b/libgfortran/io/write_float.def index 29b8f1f1681..13738190b08 100644 --- a/libgfortran/io/write_float.def +++ b/libgfortran/io/write_float.def @@ -116,7 +116,7 @@ output_float (st_parameter_dt *dtp, const fnode *f, char *buffer, size_t size, /* Handle special cases. */ if (w == 0) - w = d + 1; + w = d + (sign != S_NONE ? 2 : 1) + (d == 0 ? 1 : 0); /* For this one we choose to not output a decimal point. F95 10.5.1.2.1 */ |