Selaa lähdekoodia

* not all targets support the tls-model switch, use it only if section thread vars are used

git-svn-id: trunk@40680 -
florian 6 vuotta sitten
vanhempi
commit
9c03c29856
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      compiler/arm/agarmgas.pas

+ 3 - 1
compiler/arm/agarmgas.pas

@@ -101,7 +101,9 @@ unit agarmgas;
 
 
     function TArmGNUAssembler.MakeCmdLine: TCmdStr;
     function TArmGNUAssembler.MakeCmdLine: TCmdStr;
       begin
       begin
-        result:='-mtls-dialect=gnu '+inherited MakeCmdLine;
+        result:=inherited MakeCmdLine;
+        if tf_section_threadvars in target_info.flags then
+          result:='-mtls-dialect=gnu '+result;
         if (current_settings.fputype = fpu_soft) then
         if (current_settings.fputype = fpu_soft) then
           result:='-mfpu=softvfp '+result;
           result:='-mfpu=softvfp '+result;
         if (current_settings.fputype = fpu_vfpv2) then
         if (current_settings.fputype = fpu_vfpv2) then