./trunk/gcc430/vcs_diff_compiler.patch 2025-07-31-05:46
> uname -a FreeBSD cfarm430 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-n278149-6b96e7a57317: Sun Jun 22 13:03:35 UTC 2025 root@cfarm430:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
diff --git a/compiler/Makefile b/compiler/Makefile index ff8fa844e0..71a92b039e 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -655,7 +655,7 @@ ifdef LLVM ifeq ($(findstring $(PPC_TARGET),x86_64 aarch64 arm),) $(error The $(PPC_TARGET) architecture is not (yet) supported by the FPC/LLVM code generator) endif -ifeq ($(findstring $(OS_TARGET),darwin iphonesim linux),) +ifeq ($(findstring $(OS_TARGET),darwin iphonesim linux freebsd),) $(error The $(OS_TARGET) target OS is not (yet) supported by the FPC/LLVM code generator) endif override LOCALOPT+=-dllvm -Fullvm diff --git a/compiler/Makefile.fpc b/compiler/Makefile.fpc index 60a62b5f87..e5a861d0a2 100644 --- a/compiler/Makefile.fpc +++ b/compiler/Makefile.fpc @@ -386,7 +386,7 @@ ifeq ($(findstring $(PPC_TARGET),x86_64 aarch64 arm),) $(error The $(PPC_TARGET) architecture is not (yet) supported by the FPC/LLVM code generator) endif -ifeq ($(findstring $(OS_TARGET),darwin iphonesim linux openbsd),) +ifeq ($(findstring $(OS_TARGET),darwin iphonesim linux openbsd freebsd),) $(error The $(OS_TARGET) target OS is not (yet) supported by the FPC/LLVM code generator) endif diff --git a/compiler/systems/i_bsd.pas b/compiler/systems/i_bsd.pas index 29d48a93fe..850015b1cd 100644 --- a/compiler/systems/i_bsd.pas +++ b/compiler/systems/i_bsd.pas @@ -118,6 +118,9 @@ {$ifdef tls_threadvars} tf_section_threadvars, {$endif tls_threadvars} +{$ifdef llvm} + tf_use_psabieh, +{$endif llvm} tf_needs_symbol_type,tf_needs_symbol_size ,tf_smartlink_sections,tf_has_winlike_resources ,tf_supports_hidden_symbols]; @@ -191,6 +194,9 @@ flags : [tf_needs_symbol_size,tf_needs_dwarf_cfi,tf_library_needs_pic,tf_needs_symbol_type, tf_files_case_sensitive, tf_dwarf_only_local_labels, +{$ifdef llvm} + tf_use_psabieh, +{$endif llvm} {tf_pic_uses_got,}tf_smartlink_sections,tf_has_winlike_resources,tf_supports_hidden_symbols]; cpu : cpu_x86_64; unit_env : 'BSDUNITS';