[flang-commits] [flang] Backtrace support for flang (PR #118179)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Mon Dec 2 02:25:38 PST 2024


================
@@ -29,6 +29,7 @@ NORETURN void RTNAME(ProgramEndStatement)(NO_ARGUMENTS);
 // Extensions
 NORETURN void RTNAME(Exit)(int status DEFAULT_VALUE(EXIT_SUCCESS));
 NORETURN void RTNAME(Abort)(NO_ARGUMENTS);
+void RTNAME(Backtrace)(NO_ARGUMENTS);
----------------
tblah wrote:

@jeanPerier pointed out we don't need any of the changes in `flang/lib` in this case: pointing you at [fdate](https://github.com/llvm/llvm-project/pull/71222/files)

```suggestion
void FORTRAN_PROCEDURE_NAME(Backtrace)(NO_ARGUMENTS);
```

With this you shouldn't need any of the frontend changes (`flang/lib`, and associated header changes).

https://github.com/llvm/llvm-project/pull/118179


More information about the flang-commits mailing list