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

git-svn-id: trunk@40680 -
This commit is contained in:
florian 2018-12-27 23:14:38 +00:00
parent ce81e50907
commit 9c03c29856

View File

@ -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