[clang] Make -funwind-tables the default for SystemZ. (PR #139764)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 13 09:54:20 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: None (anoopkg6)
<details>
<summary>Changes</summary>
Making -funwind-tables by default for SystemZ like other architectures in driver by setting UnwindTableLevel::Asynchronous.
This enables eh_frame to be generated by default.
---
Full diff: https://github.com/llvm/llvm-project/pull/139764.diff
1 Files Affected:
- (modified) clang/lib/Driver/ToolChains/Gnu.cpp (+1)
``````````diff
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index 8397f1121ec2c..73e372537927c 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -3103,6 +3103,7 @@ Generic_GCC::getDefaultUnwindTableLevel(const ArgList &Args) const {
case llvm::Triple::ppc64le:
case llvm::Triple::riscv32:
case llvm::Triple::riscv64:
+ case llvm::Triple::systemz:
case llvm::Triple::x86:
case llvm::Triple::x86_64:
return UnwindTableLevel::Asynchronous;
``````````
</details>
https://github.com/llvm/llvm-project/pull/139764
More information about the cfe-commits
mailing list