set correct float abi settings for armel and armhf
authorPeter Michael Green <plugwash@debian.org>
Sat, 24 Feb 2024 07:54:59 +0000 (08:54 +0100)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Sat, 24 Feb 2024 07:54:59 +0000 (08:54 +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 b6a9df28500ae7b4d76fb20044df3c61ae0b12c7..b2ed6fb07165accad7aff4bfa2bbdea49fae193c 100644 (file)
@@ -373,7 +373,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: