clang/SOURCES/0007-Make-funwind-tables-the-default-on-all-archs.patch

28 lines
895 B
Diff
Raw Normal View History

2023-03-28 09:52:03 +00:00
From 54806261c76384ae45de93b7b5ac2de4e74bb7ae Mon Sep 17 00:00:00 2001
2021-11-03 04:17:02 +00:00
From: serge-sans-paille <sguelton@redhat.com>
2023-03-28 09:52:03 +00:00
Date: Wed, 21 Sep 2022 12:21:06 +0200
Subject: Make -funwind-tables the default on all archs
2021-11-03 04:17:02 +00:00
---
2023-03-28 09:52:03 +00:00
clang/lib/Driver/ToolChains/Gnu.cpp | 4 ++++
1 file changed, 4 insertions(+)
2021-11-03 04:17:02 +00:00
2023-03-28 09:52:03 +00:00
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index 12fa2da3187e..96527ed52445 100644
2021-11-03 04:17:02 +00:00
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
2023-03-28 09:52:03 +00:00
@@ -2845,6 +2845,10 @@ bool Generic_GCC::IsUnwindTablesDefault(const ArgList &Args) const {
2021-11-03 04:17:02 +00:00
case llvm::Triple::ppc64le:
2022-09-27 09:50:52 +00:00
case llvm::Triple::x86:
2021-11-03 04:17:02 +00:00
case llvm::Triple::x86_64:
+ // Enable -funwind-tables on all architectures supported by Fedora:
+ // rhbz#1655546
+ case llvm::Triple::systemz:
+ case llvm::Triple::arm:
return true;
default:
return false;
--
2023-03-28 09:52:03 +00:00
2.37.1
2021-11-03 04:17:02 +00:00