Переглянути джерело

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

git-svn-id: trunk@40680 -
florian 6 роки тому
батько
коміт
9c03c29856
1 змінених файлів з 3 додано та 1 видалено
  1. 3 1
      compiler/arm/agarmgas.pas

+ 3 - 1
compiler/arm/agarmgas.pas

@@ -101,7 +101,9 @@ unit agarmgas;
 
     function TArmGNUAssembler.MakeCmdLine: TCmdStr;
       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
           result:='-mfpu=softvfp '+result;
         if (current_settings.fputype = fpu_vfpv2) then