Prechádzať zdrojové kódy

* moved adding of '-mfpu=softvfp' for arm/softfloat to overridden
method in TArmGNUAssembler, because it's cleaner (no ifdef) and it
mustn't be added for darwin (which uses TArmAppleGNUAssembler)

git-svn-id: trunk@11854 -

Jonas Maebe 17 rokov pred
rodič
commit
5f39783ec6
2 zmenil súbory, kde vykonal 9 pridanie a 6 odobranie
  1. 9 1
      compiler/arm/agarmgas.pas
  2. 0 5
      compiler/assemble.pas

+ 9 - 1
compiler/arm/agarmgas.pas

@@ -29,6 +29,7 @@ unit agarmgas;
   interface
 
     uses
+       globtype,
        aasmtai,aasmdata,
        aggas,
        cpubase;
@@ -36,6 +37,7 @@ unit agarmgas;
     type
       TARMGNUAssembler=class(TGNUassembler)
         constructor create(smart: boolean); override;
+        function MakeCmdLine: TCmdStr; override;
       end;
 
      TArmInstrWriter=class(TCPUInstrWriter)
@@ -57,7 +59,7 @@ unit agarmgas;
        cutils,globals,verbose,
        systems,
        assemble,
-       aasmcpu,
+       cpuinfo,aasmcpu,
        itcpugas,
        cgbase,cgutils;
 
@@ -72,6 +74,12 @@ unit agarmgas;
       end;
 
 
+    function TArmGNUAssembler.MakeCmdLine: TCmdStr;
+      begin
+        if (current_settings.fputype = fpu_soft) then
+          result:='-mfpu=softvfp '+result;
+      end;
+
 {****************************************************************************}
 {                      GNU/Apple PPC Assembler writer                        }
 {****************************************************************************}

+ 0 - 5
compiler/assemble.pas

@@ -510,11 +510,6 @@ Implementation
           result:='-m68000 '+result;
 {$endif}
 
-{$ifdef arm}
-        if current_settings.fputype = fpu_soft then
-         result:='-mfpu=softvfp '+result;
-{$endif arm}
-
         if (cs_link_on_target in current_settings.globalswitches) then
          begin
            Replace(result,'$ASM',maybequoted(ScriptFixFileName(AsmFileName)));