This is an archive of the discontinued LLVM Phabricator instance.

[flang] Skip `Fortran STOP:` before message when NO_STOP_MESSAGE is set
ClosedPublic

Authored by jeanPerier on Nov 18 2021, 4:48 AM.

Details

Summary

In 'STOP bye bye', do not print 'Fortran STOP:` before 'bye bye' when
NO_STOP_MESSAGE environment variable is set at runtime.

Also only exit with code 1 in StopStatementText if this is an ERROR STOP.
This matches other compiler behaviors.

Move STOP related unit tests in their own test file and add new tests to
cover this change.

Diff Detail

Event Timeline

jeanPerier created this revision.Nov 18 2021, 4:48 AM
jeanPerier requested review of this revision.Nov 18 2021, 4:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2021, 4:48 AM
klausler accepted this revision.Nov 18 2021, 8:13 AM
This revision is now accepted and ready to land.Nov 18 2021, 8:13 AM