This is an archive of the discontinued LLVM Phabricator instance.

[flang] Modify right modes for READ/WRITE vs OPEN
ClosedPublic

Authored by klausler on Feb 2 2022, 11:19 AM.

Details

Summary

When a mode flag is modified (e.g., BLANK='ZERO') in an I/O data transfer
statement, ensure that the right set of mode flags is modified.
There's one set of mode flags that are captured by an OPEN
statement and maintained in the connection, and another that
is maintained in an I/O statement state record for local mutability.
Some I/O API routines were unconditionally modifying the persistent
set of flags.

Diff Detail

Event Timeline

klausler created this revision.Feb 2 2022, 11:19 AM
klausler requested review of this revision.Feb 2 2022, 11:19 AM
vdonaldson accepted this revision.Feb 2 2022, 11:42 AM
This revision is now accepted and ready to land.Feb 2 2022, 11:42 AM
This revision was landed with ongoing or failed builds.Feb 2 2022, 1:48 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2022, 1:48 PM