[flang] Don't require newline at EOF in unformatted sequential runtime input
authorpeter klausler <pklausler@nvidia.com>
Tue, 20 Jul 2021 18:39:21 +0000 (11:39 -0700)
committerpeter klausler <pklausler@nvidia.com>
Tue, 20 Jul 2021 22:25:09 +0000 (15:25 -0700)
commitb43e083bb6b145905cac576b728f238a692a0048
treec742141ba13925543239f5ae6a7c148a8f1d6aa3
parenta48e41683ae1a9b9a5bde750d3b418a205c28cc8
[flang] Don't require newline at EOF in unformatted sequential runtime input

F18 was sigalling an end-of-file error condition when reading an
unformatted sequential input file without an ultimate newline
(or CR-LF). Other Fortran implementations can handle it, so change
the runtime to support it.

Differential Revision: https://reviews.llvm.org/D106321
flang/runtime/file.cpp
flang/runtime/unit.cpp