[flang-commits] [flang] [flang]Add new intrinsic function backtrace and complete the TODO of abort (PR #117603)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Mon Nov 25 10:43:17 PST 2024
================
@@ -152,11 +153,29 @@ void RTNAME(PauseStatementText)(const char *code, std::size_t length) {
std::exit(status);
}
+static void PrintBacktrace() {
+ // TODO: Need to parse DWARF information to print function line numbers
+ const int MAX_CALL_STACK = 999;
----------------
tblah wrote:
In the runtime we use braced initialization. I also changed this to `constexpr`.
```suggestion
constexpr int MAX_CALL_STACK{999};
```
https://github.com/llvm/llvm-project/pull/117603
More information about the flang-commits
mailing list