2021-06-23 19:28:17 +00:00
|
|
|
From 07b062e1f7c3359550aa8c0a7b86f6054971439d 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
|
|
|
|
Subject: [PATCH 2/6] [PATCH][clang] Make -funwind-tables the default on all
|
|
|
|
archs
|
2020-08-19 12:13:45 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
clang/lib/Driver/ToolChain.cpp | 2 +-
|
|
|
|
clang/lib/Driver/ToolChains/Gnu.cpp | 2 +-
|
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
|
2021-06-23 19:28:17 +00:00
|
|
|
index b2ddef1..715b323 100644
|
2020-08-19 12:13:45 +00:00
|
|
|
--- a/clang/lib/Driver/ToolChain.cpp
|
|
|
|
+++ b/clang/lib/Driver/ToolChain.cpp
|
2021-06-23 19:28:17 +00:00
|
|
|
@@ -257,7 +257,7 @@ std::string ToolChain::getInputFilename(const InputInfo &Input) const {
|
2020-08-19 12:13:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool ToolChain::IsUnwindTablesDefault(const ArgList &Args) const {
|
|
|
|
- return false;
|
|
|
|
+ return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
Tool *ToolChain::getClang() const {
|
|
|
|
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
|
2021-06-23 19:28:17 +00:00
|
|
|
index 1d8a3cd..5deeb10 100644
|
2020-08-19 12:13:45 +00:00
|
|
|
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
|
|
|
|
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
|
2021-06-23 19:28:17 +00:00
|
|
|
@@ -2713,7 +2713,7 @@ bool Generic_GCC::IsUnwindTablesDefault(const ArgList &Args) const {
|
|
|
|
case llvm::Triple::x86_64:
|
|
|
|
return true;
|
|
|
|
default:
|
|
|
|
- return false;
|
|
|
|
+ return true;
|
|
|
|
}
|
2020-08-19 12:13:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2021-06-23 19:28:17 +00:00
|
|
|
1.8.3.1
|
2020-08-19 12:13:45 +00:00
|
|
|
|