This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add CALL FLUSH(n) legacy extension
ClosedPublic

Authored by klausler on Dec 7 2021, 2:43 PM.

Details

Summary

Prior to the introduction of the FLUSH statement in Fortran 2003,
implementations provided a FLUSH subroutine.

We can't yet put Fortran code into the runtime, so this subroutine
is in C++ with a Fortran-mangled entry point name.

Diff Detail

Event Timeline

klausler created this revision.Dec 7 2021, 2:43 PM
klausler requested review of this revision.Dec 7 2021, 2:43 PM
klausler updated this revision to Diff 392561.Dec 7 2021, 3:10 PM

Update: get the name mangling right.

klausler updated this revision to Diff 392569.Dec 7 2021, 3:21 PM

Pass argument by reference, of course.

pmccormick accepted this revision.Dec 8 2021, 7:49 AM

LGTM -- thanks for the quick turnaround.

This revision is now accepted and ready to land.Dec 8 2021, 7:49 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2021, 8:57 AM