[flang] Implement a runtime routine to report fatal errors with source position
authorPeter Steinfeld <psteinfeld@nvidia.com>
Fri, 28 Jan 2022 21:21:29 +0000 (13:21 -0800)
committerPeter Steinfeld <psteinfeld@nvidia.com>
Fri, 28 Jan 2022 23:46:00 +0000 (15:46 -0800)
commiteb933225f491e2063ba47e18a1153829cb32676c
treec38969e11cc48e7497d3253f445679f9348c5ff0
parent24f88f57de588817bd21e799e2ac1069c025674c
[flang] Implement a runtime routine to report fatal errors with source position

The title says it all.

I implemented a routine called "Crash" and added a test.

Differential Revision: https://reviews.llvm.org/D118509
flang/include/flang/Runtime/stop.h
flang/runtime/stop.cpp
flang/unittests/Runtime/Stop.cpp