[flang-commits] [PATCH] D108164: [flang] Fix regression from recent runtime input fix

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Aug 16 14:08:13 PDT 2021


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.

A recent runtime I/O change[1] was meant to improve the handling of
input from external files missing a terminal newline on their last
records; the change was "triggered" by the wrong circumstances and
causing reads that should have pulled more data into the buffer to be
treated as EOFs.  So fix that, and also don't retain input data
in the buffer once an input record has been finished unless it's
known that list-directed or NAMELIST input of a repeated input item
may need to backspace a non-positionable external unit to return
to the beginning of the repeated item.

[1] 6578893a0453384346f149479f8574dfff977ace


https://reviews.llvm.org/D108164

Files:
  flang/runtime/connection.h
  flang/runtime/io-stmt.cpp
  flang/runtime/io-stmt.h
  flang/runtime/unit.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108164.366737.patch
Type: text/x-patch
Size: 4281 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210816/e54e3b73/attachment.bin>


More information about the flang-commits mailing list