[all-commits] [llvm/llvm-project] 36771b: [flang][runtime] Correct emission & reading of unt...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Thu Apr 28 09:22:24 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 36771bbad1b2588b66f9033074f1f2155065dffb
https://github.com/llvm/llvm-project/commit/36771bbad1b2588b66f9033074f1f2155065dffb
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2022-04-28 (Thu, 28 Apr 2022)
Changed paths:
M flang/runtime/connection.h
M flang/runtime/io-stmt.cpp
M flang/runtime/unit.cpp
Log Message:
-----------
[flang][runtime] Correct emission & reading of unterminated final records
When the last operation on a foramtted sequential or stream file (prior
to an implied or explicit ENDFILE) is a non-advancing WRITE, ensure
that any partial record data is emitted to the file without a line
terminator. Further, when that last record is read with a non-advancing
READ, ensure that it won't raise an end-of-record condition after its
data, but instead will signal an end-of-file.
Differential Revision: https://reviews.llvm.org/D124546
More information about the All-commits
mailing list