set correct float abi settings for armel and armhf
authorPeter Michael Green <plugwash@debian.org>
Fri, 14 Mar 2025 09:48:31 +0000 (10:48 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 14 Mar 2025 09:48:31 +0000 (10:48 +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 0489911ecd9deea5061701fff2ac7f2c2aa8fa25..1c639112e63195767e9fba9a7be13490d8f2de9f 100644 (file)
@@ -428,7 +428,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: