]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libfortran/25463 (T edit descriptor and ADVANCE="no")
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 19 Dec 2005 06:52:33 +0000 (06:52 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 19 Dec 2005 06:52:33 +0000 (06:52 +0000)
2005-12-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25463
* io/transfer.c (finalize_transfer): Fix execution order so that
next_record is set to zero in all cases.

From-SVN: r108784

libgfortran/ChangeLog
libgfortran/io/transfer.c

index f46b469c56b1b761b6301d1ff165b78775c6b0ae..1d57faa270e067b89aef61a1f93f35ccc6884f15 100644 (file)
@@ -1,3 +1,9 @@
+2005-12-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/25463
+       * io/transfer.c (finalize_transfer): Fix execution order so that
+       next_record is set to zero in all cases.
+
 2005-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libgfortran/25264
index 7696643deb904c852b856ce3735c194965d879ce..7ad1fffc68d9016264bb9b07c4261cbcc8102130 100644 (file)
@@ -2017,6 +2017,7 @@ finalize_transfer (st_parameter_dt *dtp)
     finish_list_read (dtp);
   else
     {
+      dtp->u.p.current_unit->current_record = 0;
       if (dtp->u.p.advance_status == ADVANCE_NO || dtp->u.p.seen_dollar)
        {
          /* Most systems buffer lines, so force the partial record
@@ -2027,7 +2028,6 @@ finalize_transfer (st_parameter_dt *dtp)
        }
 
       next_record (dtp, 1);
-      dtp->u.p.current_unit->current_record = 0;
     }
 
   sfree (dtp->u.p.current_unit->s);