set correct float abi settings for armel and armhf
authorPeter Michael Green <plugwash@debian.org>
Thu, 16 Jun 2022 10:00:08 +0000 (11:00 +0100)
committerEmilio Pozuelo Monfort <pochu@debian.org>
Thu, 16 Jun 2022 10:00:08 +0000 (11:00 +0100)
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 4ab547fabe43e4a8506ab15cc14c7a7bc0c1e9df..df311349e7fc2fdbef5503534073c15ca87bd746 100644 (file)
@@ -349,7 +349,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: