Jelajahi Sumber

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

(cherry picked from commit 2ee45c7ed8506abe59a2031152a052baf819ce5c)
Jonas Maebe 3 tahun lalu
induk
melakukan
89bf3fe5ea
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      compiler/systems.pas

+ 1 - 1
compiler/systems.pas

@@ -395,7 +395,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,