HomePhabricator

[flang] Fix actions at end of output record

Authored by klausler on Oct 1 2020, 10:59 AM.

Description

[flang] Fix actions at end of output record

It turns out that unformatted fixed-size output records
do need to be padded out if short, in order to avoid a
spurious EOF crash on a short record at the end of the file.
While here in AdvanceRecord(), move the unformatted
variable-length record header/footer writing code to here
from EndIoStatement().

Differential revision: https://reviews.llvm.org/D88685

Details

Committed
klauslerOct 1 2020, 5:18 PM
Differential Revision
D88685: [flang] Fix actions at end of output record
Parents
rG78a9e62aa6f8: [XCOFF] Enable -fdata-sections on AIX
Branches
Unknown
Tags
Unknown