mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 03:09:11 +02:00
* set reasonable defaults for arm eabi
git-svn-id: trunk@47530 -
This commit is contained in:
parent
10911173df
commit
7ad8f94ec4
@ -4387,8 +4387,9 @@ begin
|
||||
;
|
||||
end;
|
||||
|
||||
{ ARMHF defaults }
|
||||
if (target_info.abi = abi_eabihf) then
|
||||
{ set ABI defaults }
|
||||
case target_info.abi of
|
||||
abi_eabihf:
|
||||
{ set default cpu type to ARMv7a for ARMHF unless specified otherwise }
|
||||
begin
|
||||
{$ifdef CPUARMV6}
|
||||
@ -4425,6 +4426,22 @@ begin
|
||||
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
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user