diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2010-03-11 02:15:33 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2010-03-11 02:15:33 +0000 |
commit | b7137299f1070a262d927bc850823202e6014566 (patch) | |
tree | 862d8a01f513f7596c62172bdcc69fa4b6060fe7 | |
parent | 78a50f698f5c7d94e5406404f6251f7ae4bc5437 (diff) | |
download | gcc-b7137299f1070a262d927bc850823202e6014566.zip gcc-b7137299f1070a262d927bc850823202e6014566.tar.gz gcc-b7137299f1070a262d927bc850823202e6014566.tar.bz2 |
re PR libfortran/43320 (200.sixtrack fails setup)
2010-03-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/43320
* io/transfer.c (next_record_r): Add hit_eof based on item_count
condition.
From-SVN: r157377
-rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
-rw-r--r-- | libgfortran/io/transfer.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 1f6b514..e496264 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2010-03-10 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libfortran/43320 + * io/transfer.c (next_record_r): Add hit_eof based on item_count + condition. + 2010-03-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/43265 diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c index c5d26a5..958ef65 100644 --- a/libgfortran/io/transfer.c +++ b/libgfortran/io/transfer.c @@ -2810,6 +2810,8 @@ next_record_r (st_parameter_dt *dtp) { if (errno != 0) generate_error (&dtp->common, LIBERROR_OS, NULL); + else if (dtp->u.p.item_count == 1) + hit_eof (dtp); break; } |