瀏覽代碼

* pass float abi always to the arm assembler

git-svn-id: trunk@39996 -
(cherry picked from commit 2cbb9895be91b688cd062e8982bab0ce1990c5ce)
florian 6 年之前
父節點
當前提交
7c7f2cfdea
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      compiler/arm/agarmgas.pas

+ 5 - 1
compiler/arm/agarmgas.pas

@@ -131,7 +131,11 @@ unit agarmgas;
 
 
         if target_info.abi = abi_eabihf then
         if target_info.abi = abi_eabihf then
           { options based on what gcc uses on debian armhf }
           { 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;
       end;
 
 
     procedure TArmGNUAssembler.WriteExtraHeader;
     procedure TArmGNUAssembler.WriteExtraHeader;