From 440caf8ff8125ed5a9a07efb6d4644b78adc7f4c Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 11 Jun 2014 14:58:20 -0400 Subject: [PATCH] Different attempt to default to hard-float on arm (#803433) --- llvm.spec | 9 ++++++++- pr12586.patch | 13 +++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 pr12586.patch diff --git a/llvm.spec b/llvm.spec index 9225686..2464624 100644 --- a/llvm.spec +++ b/llvm.spec @@ -36,7 +36,7 @@ Name: llvm Version: 3.4 -Release: 10%{?dist} +Release: 11%{?dist} Summary: The Low Level Virtual Machine Group: Development/Languages @@ -69,6 +69,9 @@ Patch20: clang-3.4-arm-hard-float.patch # temporary measure to get ppc64le building, if perhaps not working Patch21: 0001-PPC64LE-ELFv2-ABI-updates-for-the-.opd-section.patch +# http://llvm.org/bugs/attachment.cgi?id=12586 +Patch22: pr12586.patch + BuildRequires: bison BuildRequires: chrpath BuildRequires: flex @@ -310,6 +313,7 @@ mv lldb-%{version} tools/lldb %patch20 -p1 %endif %patch21 -p1 +%patch22 -p1 # fix library paths sed -i 's|/lib /usr/lib $lt_ld_extra|%{_libdir} $lt_ld_extra|' ./configure @@ -675,6 +679,9 @@ exit 0 %endif %changelog +* Wed Jun 11 2014 Adam Jackson 3.4-11 +- Different attempt to default to hard-float on arm (#803433) + * Sat Jun 07 2014 Fedora Release Engineering - 3.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild diff --git a/pr12586.patch b/pr12586.patch new file mode 100644 index 0000000..f3a7cf3 --- /dev/null +++ b/pr12586.patch @@ -0,0 +1,13 @@ +diff --git a/tools/clang/lib/Driver/Tools.cpp b/tools/clang/lib/Driver/Tools.cpp +index 29713ed..0d23694 100644 +--- a/tools/clang/lib/Driver/Tools.cpp ++++ b/tools/clang/lib/Driver/Tools.cpp +@@ -747,7 +747,7 @@ static StringRef getARMFloatABI(const Driver &D, + FloatABI = "hard"; + break; + case llvm::Triple::GNUEABI: +- FloatABI = "softfp"; ++ FloatABI = Triple.getVendorName() == "hardfloat" ? "hard" : "softfp"; + break; + case llvm::Triple::EABI: + // EABI is always AAPCS, and if it was not marked 'hard', it's softfp