This is an archive of the discontinued LLVM Phabricator instance.

[flang] Correct interpretation of RECL=
ClosedPublic

Authored by klausler on Jan 31 2022, 10:11 AM.

Details

Summary

When RECL= is set on OPEN(), ensure that it:

  1. enforces a max output record payload size (not including header+footer or newline), and
  2. causes padding of short output records only for ACCESS='DIRECT'

The previous code was causing some false overrun errors
and applying padding to sequential/stream output files.

Diff Detail

Event Timeline

klausler created this revision.Jan 31 2022, 10:11 AM
klausler requested review of this revision.Jan 31 2022, 10:11 AM
vdonaldson accepted this revision.Jan 31 2022, 10:21 AM
This revision is now accepted and ready to land.Jan 31 2022, 10:21 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2022, 12:48 PM