Blame SOURCES/0001-Make-funwind-tables-the-default-for-all-archs.patch

7cde34
From 690373af5a5d50cf115ed6e4d2849bb786f9dc8e Mon Sep 17 00:00:00 2001
7cde34
From: serge-sans-paille <sguelton@redhat.com>
7cde34
Date: Tue, 10 Dec 2019 09:18:03 +0000
7cde34
Subject: [PATCH] Make -funwind-tables the default for all archs
7cde34
7cde34
---
7cde34
 clang/lib/Driver/ToolChain.cpp      | 2 +-
7cde34
 clang/lib/Driver/ToolChains/Gnu.cpp | 2 +-
7cde34
 2 files changed, 2 insertions(+), 2 deletions(-)
7cde34
7cde34
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
7cde34
index b1fddb0af55..43af40ed0e8 100644
7cde34
--- a/clang/lib/Driver/ToolChain.cpp
7cde34
+++ b/clang/lib/Driver/ToolChain.cpp
7cde34
@@ -244,7 +244,7 @@ std::string ToolChain::getInputFilename(const InputInfo &Input) const {
7cde34
 }
7cde34
 
7cde34
 bool ToolChain::IsUnwindTablesDefault(const ArgList &Args) const {
7cde34
-  return false;
7cde34
+  return true;
7cde34
 }
7cde34
 
7cde34
 Tool *ToolChain::getClang() const {
7cde34
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
7cde34
index 33cdd3585c2..15e82be8f3a 100644
7cde34
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
7cde34
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
7cde34
@@ -2535,7 +2535,7 @@ void Generic_GCC::printVerboseInfo(raw_ostream &OS) const {
7cde34
 }
7cde34
 
7cde34
 bool Generic_GCC::IsUnwindTablesDefault(const ArgList &Args) const {
7cde34
-  return getArch() == llvm::Triple::x86_64;
7cde34
+  return true;
7cde34
 }
7cde34
 
7cde34
 bool Generic_GCC::isPICDefault() const {
7cde34
-- 
7cde34
2.20.1
7cde34