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

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