2023-02-06 13:29:03 +00:00
|
|
|
From d95d3fbff661c0390072ed0bb4544d5e2aae5c9a Mon Sep 17 00:00:00 2001
|
2021-03-02 13:40:08 +00:00
|
|
|
From: serge-sans-paille <sguelton@redhat.com>
|
|
|
|
Date: Thu, 25 Feb 2021 14:09:29 +0100
|
2023-02-06 13:29:03 +00:00
|
|
|
Subject: [PATCH] Make -funwind-tables the default on all archs
|
2021-03-02 13:40:08 +00:00
|
|
|
|
|
|
|
---
|
2023-02-06 13:29:03 +00:00
|
|
|
clang/lib/Driver/ToolChains/Gnu.cpp | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
2021-03-02 13:40:08 +00:00
|
|
|
|
2023-02-06 13:29:03 +00:00
|
|
|
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
|
|
|
|
index c8006f3d8412..6ed03adb7702 100644
|
2021-03-02 13:40:08 +00:00
|
|
|
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
|
|
|
|
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
|
2023-02-06 13:29:03 +00:00
|
|
|
@@ -2863,6 +2863,11 @@ Generic_GCC::getDefaultUnwindTableLevel(const ArgList &Args) const {
|
2021-06-08 17:34:28 +00:00
|
|
|
case llvm::Triple::ppc64le:
|
2022-03-09 14:08:40 +00:00
|
|
|
case llvm::Triple::x86:
|
2021-03-02 13:40:08 +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-02-06 13:29:03 +00:00
|
|
|
return UnwindTableLevel::Asynchronous;
|
2021-03-02 13:40:08 +00:00
|
|
|
default:
|
2023-02-06 13:29:03 +00:00
|
|
|
return UnwindTableLevel::None;
|
2021-03-02 13:40:08 +00:00
|
|
|
--
|
2023-02-06 13:29:03 +00:00
|
|
|
2.39.1
|
2021-03-02 13:40:08 +00:00
|
|
|
|