From 7c7f2cfdea8584102165d39ac5e9f5675125d1c8 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 20 Oct 2018 16:48:31 +0000 Subject: [PATCH] * pass float abi always to the arm assembler git-svn-id: trunk@39996 - (cherry picked from commit 2cbb9895be91b688cd062e8982bab0ce1990c5ce) --- compiler/arm/agarmgas.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/arm/agarmgas.pas b/compiler/arm/agarmgas.pas index 386a41f048..4d8ebdce00 100644 --- a/compiler/arm/agarmgas.pas +++ b/compiler/arm/agarmgas.pas @@ -131,7 +131,11 @@ unit agarmgas; if target_info.abi = abi_eabihf then { options based on what gcc uses on debian armhf } - result:='-mfloat-abi=hard -meabi=5 '+result; + result:='-mfloat-abi=hard -meabi=5 '+result + else if (target_info.abi = abi_eabi) and not(current_settings.fputype = fpu_soft) then + result:='-mfloat-abi=softfp -meabi=5 '+result + else if (target_info.abi = abi_eabi) and (current_settings.fputype = fpu_soft) then + result:='-mfloat-abi=soft -meabi=5 '+result; end; procedure TArmGNUAssembler.WriteExtraHeader;