mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 13:49:11 +02:00
* set reasonable defaults for arm eabi
git-svn-id: trunk@47530 -
This commit is contained in:
parent
10911173df
commit
7ad8f94ec4
@ -4387,11 +4387,12 @@ begin
|
|||||||
;
|
;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ ARMHF defaults }
|
{ set ABI defaults }
|
||||||
if (target_info.abi = abi_eabihf) then
|
case target_info.abi of
|
||||||
|
abi_eabihf:
|
||||||
{ set default cpu type to ARMv7a for ARMHF unless specified otherwise }
|
{ set default cpu type to ARMv7a for ARMHF unless specified otherwise }
|
||||||
begin
|
begin
|
||||||
{$ifdef CPUARMV6}
|
{$ifdef CPUARMV6}
|
||||||
{ if the compiler is built for armv6, then
|
{ if the compiler is built for armv6, then
|
||||||
inherit this setting, e.g. Raspian is armhf but
|
inherit this setting, e.g. Raspian is armhf but
|
||||||
only armv6, this makes rebuilds of the compiler
|
only armv6, this makes rebuilds of the compiler
|
||||||
@ -4400,12 +4401,12 @@ begin
|
|||||||
init_settings.cputype:=cpu_armv6;
|
init_settings.cputype:=cpu_armv6;
|
||||||
if not option.OptCPUSetExplicitly then
|
if not option.OptCPUSetExplicitly then
|
||||||
init_settings.optimizecputype:=cpu_armv6;
|
init_settings.optimizecputype:=cpu_armv6;
|
||||||
{$else CPUARMV6}
|
{$else CPUARMV6}
|
||||||
if not option.CPUSetExplicitly then
|
if not option.CPUSetExplicitly then
|
||||||
init_settings.cputype:=cpu_armv7a;
|
init_settings.cputype:=cpu_armv7a;
|
||||||
if not option.OptCPUSetExplicitly then
|
if not option.OptCPUSetExplicitly then
|
||||||
init_settings.optimizecputype:=cpu_armv7a;
|
init_settings.optimizecputype:=cpu_armv7a;
|
||||||
{$endif CPUARMV6}
|
{$endif CPUARMV6}
|
||||||
|
|
||||||
{ Set FPU type }
|
{ Set FPU type }
|
||||||
if not(option.FPUSetExplicitly) then
|
if not(option.FPUSetExplicitly) then
|
||||||
@ -4425,6 +4426,22 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
abi_eabi:
|
||||||
|
begin
|
||||||
|
if target_info.system=system_arm_linux then
|
||||||
|
begin
|
||||||
|
{ this is what Debian uses }
|
||||||
|
if not option.CPUSetExplicitly then
|
||||||
|
init_settings.cputype:=cpu_armv4t;
|
||||||
|
if not option.OptCPUSetExplicitly then
|
||||||
|
init_settings.optimizecputype:=cpu_armv4t;
|
||||||
|
if not(option.FPUSetExplicitly) then
|
||||||
|
init_settings.fputype:=fpu_soft;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
else
|
||||||
|
;
|
||||||
|
end;
|
||||||
|
|
||||||
if (init_settings.instructionset=is_thumb) and not(CPUARM_HAS_THUMB2 in cpu_capabilities[init_settings.cputype]) then
|
if (init_settings.instructionset=is_thumb) and not(CPUARM_HAS_THUMB2 in cpu_capabilities[init_settings.cputype]) then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user