[flang-commits] [flang] [flang]Add new intrinsic function backtrace and complete the TODO of abort (PR #117603)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Tue Nov 26 16:12:05 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
----------------
tarunprabhu wrote:
Is `execinfo.h` guaranteed to exist on all Linux platforms? I think this header is only available on systems that use glibc. Some Linux distributions, such as Alpine, use musl. Is the header guaranteed to exist there?
https://github.com/llvm/llvm-project/pull/117603
More information about the flang-commits
mailing list