Changeset View
Changeset View
Standalone View
Standalone View
lang/fpc/files/patch-compiler_systems.pas
diff --git a/compiler/systems.pas b/compiler/systems.pas | |||||
index 4b700e9b..299c7d24 100644 | |||||
--- compiler/systems.pas | |||||
+++ compiler/systems.pas | |||||
@@ -234,7 +234,8 @@ interface | |||||
system_arm_linux,system_sparc_linux,system_sparc64_linux,system_m68k_linux, | |||||
system_x86_6432_linux,system_mipseb_linux,system_mipsel_linux,system_aarch64_linux]; | |||||
systems_dragonfly = [system_x86_64_dragonfly]; | |||||
- systems_freebsd = [system_i386_freebsd, | |||||
+ systems_freebsd = [system_aarch64_freebsd, | |||||
+ system_i386_freebsd, | |||||
system_x86_64_freebsd]; | |||||
systems_netbsd = [system_i386_netbsd, | |||||
system_m68k_netbsd, | |||||
@@ -383,7 +384,7 @@ interface | |||||
{ all systems where a value parameter passed by reference must be copied | |||||
on the caller side rather than on the callee side } | |||||
- systems_caller_copy_addr_value_para = [system_aarch64_darwin,system_aarch64_linux]; | |||||
+ systems_caller_copy_addr_value_para = [system_aarch64_darwin,system_aarch64_freebsd,system_aarch64_linux]; | |||||
{ pointer checking (requires special code in FPC_CHECKPOINTER, | |||||
and can never work for libc-based targets or any other program | |||||
@@ -1033,6 +1035,10 @@ begin | |||||
{$define default_target_set} | |||||
default_target(system_aarch64_darwin); | |||||
{$endif darwin} | |||||
+ {$ifdef freebsd} | |||||
+ {$define default_target_set} | |||||
+ default_target(system_aarch64_freebsd); | |||||
+ {$endif freebsd} | |||||
{$ifdef android} | |||||
{$define default_target_set} | |||||
default_target(system_aarch64_android); |