2023-10-03 07:02:57 +00:00
|
|
|
From 49f827b09db549de62dcaf8b90b3fcb3e08c0ee5 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Serge Guelton <sguelton@redhat.com>
|
|
|
|
Date: Mon, 6 Mar 2023 12:37:48 +0100
|
2023-04-17 14:04:14 +00:00
|
|
|
Subject: [PATCH] Make -funwind-tables the default on all archs
|
2020-10-14 20:53:00 +00:00
|
|
|
|
|
|
|
---
|
2023-10-03 07:02:57 +00:00
|
|
|
clang/lib/Driver/ToolChains/Gnu.cpp | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
2020-10-14 20:53:00 +00:00
|
|
|
|
2022-09-19 11:35:33 +00:00
|
|
|
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
|
2023-10-03 07:02:57 +00:00
|
|
|
index 24fbdcffc07b..8fed46b49515 100644
|
2020-10-14 20:53:00 +00:00
|
|
|
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
|
|
|
|
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
|
2023-10-03 07:02:57 +00:00
|
|
|
@@ -2904,6 +2904,10 @@ Generic_GCC::getDefaultUnwindTableLevel(const ArgList &Args) const {
|
|
|
|
case llvm::Triple::riscv64:
|
2022-04-22 11:48:47 +00:00
|
|
|
case llvm::Triple::x86:
|
2021-02-10 13:48:42 +00:00
|
|
|
case llvm::Triple::x86_64:
|
2021-06-08 17:34:28 +00:00
|
|
|
+ // Enable -funwind-tables on all architectures supported by Fedora:
|
|
|
|
+ // rhbz#1655546
|
|
|
|
+ case llvm::Triple::systemz:
|
|
|
|
+ case llvm::Triple::arm:
|
2023-04-17 14:04:14 +00:00
|
|
|
return UnwindTableLevel::Asynchronous;
|
2021-02-10 13:48:42 +00:00
|
|
|
default:
|
2023-04-17 14:04:14 +00:00
|
|
|
return UnwindTableLevel::None;
|
2020-10-14 20:53:00 +00:00
|
|
|
--
|
2023-04-17 14:04:14 +00:00
|
|
|
2.39.1
|
2020-10-14 20:53:00 +00:00
|
|
|
|