From c9608480ef41de959d046d805746d61e9e7b5247 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sun, 31 Mar 2013 21:13:02 -0500 Subject: [PATCH] add a hack to clang defaulting arm to hardfloat --- clang-hardfloat-hack.patch | 13 +++++++++++++ llvm.spec | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 clang-hardfloat-hack.patch diff --git a/clang-hardfloat-hack.patch b/clang-hardfloat-hack.patch new file mode 100644 index 0000000..f1b0c60 --- /dev/null +++ b/clang-hardfloat-hack.patch @@ -0,0 +1,13 @@ +--- llvm-3.2.src.orig/tools/clang/lib/Driver/Tools.cpp 2012-11-21 01:56:23.000000000 -0600 ++++ llvm-3.2.src/tools/clang/lib/Driver/Tools.cpp 2013-03-31 21:08:41.890206683 -0500 +@@ -688,8 +688,8 @@ + } + default: + // Assume "soft", but warn the user we are guessing. +- FloatABI = "soft"; +- D.Diag(diag::warn_drv_assuming_mfloat_abi_is) << "soft"; ++ FloatABI = "hard"; ++ D.Diag(diag::warn_drv_assuming_mfloat_abi_is) << "hard"; + break; + } + } diff --git a/llvm.spec b/llvm.spec index 4aa3802..acd4159 100644 --- a/llvm.spec +++ b/llvm.spec @@ -35,7 +35,7 @@ Name: llvm Version: 3.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The Low Level Virtual Machine Group: Development/Languages @@ -51,6 +51,7 @@ Source3: llvm-Config-llvm-config.h Patch0: llvm-2.6-timestamp.patch Patch10: llvm-3.2-clang-driver-secondary-arch-triplets.patch +Patch11: clang-hardfloat-hack.patch # hack llvm-config to print -lLLVM-3.2svn instead of ALL THE THINGS # @@ -277,6 +278,7 @@ mv clang-%{version}%{?prerel}.src tools/clang # clang triplets %patch10 -p1 -b .orig +%patch11 -p1 -b .orig # fix llvm-config --libs #patch20 -p1 -b .orig @@ -574,6 +576,9 @@ exit 0 %endif %changelog +* Sun Mar 31 2013 Dennis Gilmore - 3.2-3 +- add a hack to clang defaulting arm to hardfloat + * Fri Mar 08 2013 Adam Jackson 3.2-2 - Update R600 patches - Move static libs to -static subpackage