From 2ee45c7ed8506abe59a2031152a052baf819ce5c Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Mon, 7 Feb 2022 20:30:35 +0100 Subject: [PATCH] PowerPC32 SysV: fix abis_ppc_toc declaration No TOC on those platforms (as mentioned in tcgppcgen.get_rtoc_offset), so also exclude from this constant --- compiler/systems.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/systems.pas b/compiler/systems.pas index 9e220be6a3..232ed67159 100644 --- a/compiler/systems.pas +++ b/compiler/systems.pas @@ -450,7 +450,7 @@ interface { all PPC ABIs that use a TOC register to address globals } abis_ppc_toc = [ - abi_powerpc_sysv,abi_powerpc_aix,abi_powerpc_elfv2 + {$ifdef powerpc32}abi_powerpc_sysv,{$endif}abi_powerpc_aix,abi_powerpc_elfv2 ]; { pointer checking (requires special code in FPC_CHECKPOINTER,