mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-24 02:19:24 +02:00
* 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 -
This commit is contained in:
parent
3aa600e569
commit
5f39783ec6
compiler
@ -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 }
|
||||
{****************************************************************************}
|
||||
|
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user