mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 12:29:23 +02:00
small & ugly patch to work around old GNU AS on Amiga, which doesn't know about -march=
git-svn-id: trunk@23160 -
This commit is contained in:
parent
e2ce0e54c2
commit
7fa067265b
@ -581,14 +581,28 @@ Implementation
|
|||||||
result:=target_asm.asmcmd;
|
result:=target_asm.asmcmd;
|
||||||
{$ifdef m68k}
|
{$ifdef m68k}
|
||||||
{ TODO: use a better approach for this }
|
{ TODO: use a better approach for this }
|
||||||
case current_settings.cputype of
|
if (target_info.system=system_m68k_amiga) then
|
||||||
cpu_MC68000:
|
begin
|
||||||
result:='-march=68000 '+result;
|
{ m68k-amiga has old binutils, which doesn't support -march=* }
|
||||||
cpu_MC68020:
|
case current_settings.cputype of
|
||||||
result:='-march=68020 '+result;
|
cpu_MC68000:
|
||||||
cpu_Coldfire:
|
result:='-m68000 '+result;
|
||||||
result:='-march=cfv4e '+result;
|
cpu_MC68020:
|
||||||
end;
|
result:='-m68020 '+result;
|
||||||
|
{ additionally, AmigaOS doesn't work on Coldfire }
|
||||||
|
end;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
case current_settings.cputype of
|
||||||
|
cpu_MC68000:
|
||||||
|
result:='-march=68000 '+result;
|
||||||
|
cpu_MC68020:
|
||||||
|
result:='-march=68020 '+result;
|
||||||
|
cpu_Coldfire:
|
||||||
|
result:='-march=cfv4e '+result;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
{$endif}
|
{$endif}
|
||||||
{$ifdef arm}
|
{$ifdef arm}
|
||||||
if (target_info.system=system_arm_darwin) then
|
if (target_info.system=system_arm_darwin) then
|
||||||
|
Loading…
Reference in New Issue
Block a user