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

Jean Perier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 18 04:48:23 PST 2021


jeanPerier created this revision.
jeanPerier added a reviewer: klausler.
jeanPerier added a project: Flang.
Herald added subscribers: jdoerfert, mgorny.
Herald added a reviewer: sscalpone.
jeanPerier requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114152

Files:
  flang/runtime/stop.cpp
  flang/unittests/Runtime/CMakeLists.txt
  flang/unittests/Runtime/RuntimeCrashTest.cpp
  flang/unittests/Runtime/Stop.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114152.388156.patch
Type: text/x-patch
Size: 6049 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211118/5143ff5c/attachment.bin>


More information about the llvm-commits mailing list