[clang] [flang] [llvm] [flang] Add -fbacktrace and -fno-backtrace (PR #241967)

Tarun Prabhu via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 19 18:55:55 PST 2026


================
@@ -100,6 +100,31 @@ treated as big-endian for both input and output, while units 26 and 27 will be
 treated as little-endian for both input and output.
 
 
+## `FLANG_ERROR_BACKTRACE`
+
+Controls the stack trace printed for a fatal runtime error, an `ERROR STOP`
+statement, the `ABORT` extension, or a deadly signal such as `SIGSEGV` or
----------------
tarunprabhu wrote:

I think we can provide an explicit list of signals for which a backtrace will be printed. We should also make clear that we do not print a backtrace for certain signals such as `SIGINT` (feel free to include other commonly encountered signals for which a backtrace will not be printed).

```suggestion
statement, the `ABORT` extension, or a fatal signal such as `SIGSEGV` or
```

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


More information about the cfe-commits mailing list