set correct float abi settings for armel and armhf
authorPeter Michael Green <plugwash@debian.org>
Wed, 30 Nov 2022 15:15:42 +0000 (15:15 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Wed, 30 Nov 2022 15:15:42 +0000 (15:15 +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 a64909d9a6e77a126a249b083d674afaf73df2bb..0167790828ab5fe70813327bc24c132ef5b18beb 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: