llvm-toolchain/debian/patches/26-set-correct-float-abi.diff
Sylvestre Ledru 578e474efb * debian/patches/{0003-Debian-version-info-and-bugreport.patch,
0044-soname.diff,23-strlcpy_strlcat_warning_removed.diff,
  26-set-correct-float-abi.diff,atomic_library_[12].diff,
  fix-clang-path-and-build.diff,fix-lldb-server-build,lldb-libname.diff,
  lldb-soname.diff,mips-fpxx-enable.diff,removeduplicatedeclaration.diff}:
  Refreshed.
* debian/patches/{silent-gold-utils,kfreebsd-support}.diff: Updated.
2016-11-03 08:40:58 +00:00

36 lines
1.4 KiB
Diff

Description: set correct float abi settings for armel and armhf
debian armel supports systems that don't have a fpu so should use a "float abi"
setting of soft by default.
Debian armhf needs a float abi setting of "hard"
Author: Peter Michael Green <plugwash@debian.org>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>
---
clang/lib/Driver/Tools.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -973,7 +973,7 @@ arm::FloatABI arm::getARMFloatABI(const
case llvm::Triple::MuslEABI:
case llvm::Triple::EABI:
// EABI is always AAPCS, and if it was not marked 'hard', it's softfp
- ABI = FloatABI::SoftFP;
+ ABI = FloatABI::Soft;
break;
case llvm::Triple::Android:
ABI = (SubArch == 7) ? FloatABI::SoftFP : FloatABI::Soft;