This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Improve Fortran I/O behavior when main program is C/C++
ClosedPublic

Authored by klausler on Aug 18 2022, 11:09 AM.

Details

Summary

Ensure that I/O buffers are flushed at the end of the program,
and properly detect ttys for predefined units so that Fortran
output is interspersed with output from non-Fortran code.

Fixes https://github.com/llvm/llvm-project/issues/56944

Diff Detail

Event Timeline

klausler created this revision.Aug 18 2022, 11:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2022, 11:09 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 18 2022, 11:09 AM
vdonaldson accepted this revision.Aug 18 2022, 11:33 AM
vdonaldson added inline comments.
flang/runtime/unit.cpp
239

nit: progrmas

This revision is now accepted and ready to land.Aug 18 2022, 11:33 AM
klausler updated this revision to Diff 453741.Aug 18 2022, 11:36 AM

Fix typo in comment.