set correct float abi settings for armel and armhf
authorPeter Michael Green <plugwash@debian.org>
Sat, 29 Jan 2022 09:17:38 +0000 (09:17 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 29 Jan 2022 09:17:38 +0000 (09:17 +0000)
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"

Gbp-Pq: Name 26-set-correct-float-abi.diff

clang/lib/Driver/ToolChains/Arch/ARM.cpp

index ef590db1eecd7bfe1a932be4a922892fb2dfe37b..e2d2c323539ae2afa5983dfd62cf59ba2fecb649 100644 (file)
@@ -220,7 +220,7 @@ arm::FloatABI arm::getDefaultFloatABI(const llvm::Triple &Triple) {
     case llvm::Triple::MuslEABI:
     case llvm::Triple::EABI:
       // EABI is always AAPCS, and if it was not marked 'hard', it's softfp
-      return FloatABI::SoftFP;
+      return FloatABI::Soft;
     case llvm::Triple::Android:
       return (SubArch >= 7) ? FloatABI::SoftFP : FloatABI::Soft;
     default: