[clang] Make -funwind-tables the default for SystemZ. (PR #139764)

via cfe-commits cfe-commits at lists.llvm.org
Tue May 13 09:53:45 PDT 2025


https://github.com/anoopkg6 created https://github.com/llvm/llvm-project/pull/139764

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.

>From e0b15d83e04aebc8f7198af085c6fbe35f5ca7d4 Mon Sep 17 00:00:00 2001
From: anoopkg6 <anoopkg6 at github.com>
Date: Tue, 13 May 2025 18:33:15 +0200
Subject: [PATCH] Make -funwind-tables the default for SystemZ.

---
 clang/lib/Driver/ToolChains/Gnu.cpp | 1 +
 1 file changed, 1 insertion(+)

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;



More information about the cfe-commits mailing list