2021-09-22 11:25:47 +00:00
|
|
|
From c87abee7356b8fde81512ffceadd520776c465d2 Mon Sep 17 00:00:00 2001
|
2020-08-19 12:13:45 +00:00
|
|
|
From: serge-sans-paille <sguelton@redhat.com>
|
2021-06-23 19:28:17 +00:00
|
|
|
Date: Thu, 25 Feb 2021 14:09:29 +0100
|
2021-09-22 11:25:47 +00:00
|
|
|
Subject: [PATCH] [PATCH][clang] Make -funwind-tables the default on all archs
|
2020-08-19 12:13:45 +00:00
|
|
|
|
|
|
|
---
|
2021-09-22 11:25:47 +00:00
|
|
|
clang/lib/Driver/ToolChains/Gnu.cpp | 6 ++++++
|
|
|
|
1 file changed, 6 insertions(+)
|
2020-08-19 12:13:45 +00:00
|
|
|
|
2022-05-10 04:23:43 +00:00
|
|
|
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp
|
|
|
|
b/clang/lib/Driver/ToolChains/Gnu.cpp
|
|
|
|
index d0808d061c82..de9c9743cd38 100644
|
2020-08-19 12:13:45 +00:00
|
|
|
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
|
|
|
|
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
|
2022-05-10 04:23:43 +00:00
|
|
|
@@ -2701,6 +2701,11 @@ bool Generic_GCC::IsUnwindTablesDefault(const ArgList &Args) const {
|
2021-09-22 11:25:47 +00:00
|
|
|
case llvm::Triple::ppc64le:
|
2022-05-10 04:23:43 +00:00
|
|
|
case llvm::Triple::x86:
|
2021-06-23 19:28:17 +00:00
|
|
|
case llvm::Triple::x86_64:
|
2021-09-22 11:25:47 +00:00
|
|
|
+
|
|
|
|
+ // Enable -funwind-tables on all architectures supported by Fedora:
|
|
|
|
+ // rhbz#1655546
|
|
|
|
+ case llvm::Triple::systemz:
|
|
|
|
+ case llvm::Triple::arm:
|
2021-06-23 19:28:17 +00:00
|
|
|
return true;
|
|
|
|
default:
|
2021-09-22 11:25:47 +00:00
|
|
|
return false;
|
2020-08-19 12:13:45 +00:00
|
|
|
--
|
2021-09-22 11:25:47 +00:00
|
|
|
2.27.0
|
2020-08-19 12:13:45 +00:00
|
|
|
|