瀏覽代碼

* 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