[clang] [flang] [llvm] [flang] Add -fbacktrace and -fno-backtrace (PR #241967)
Tarun Prabhu via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 17 07:47:07 PST 2026
================
@@ -108,9 +108,8 @@ statement, the `ABORT` extension, or a deadly signal such as `SIGSEGV` or
`CALL BACKTRACE()` always prints one, whether or not this variable disables
the others.
-Only the first character is significant. `1`, `Y`, or `y` enables the trace,
-and `0`, `N`, or `n` disables it. Any other value is ignored. When the
-variable is unset, the trace is enabled.
+The value must be `0` or `1`. `1` enables the trace and `0` disables it.
+Any other value is ignored. When the variable is unset, the trace is enabled.
----------------
tarunprabhu wrote:
This is a reasonable approach as well since it keeps things simple. But we should check if there what the state of the practice is in the other LLVM runtimes and try to stay consistent with that.
https://github.com/llvm/llvm-project/pull/241967
More information about the cfe-commits
mailing list