From 28964711d7941d466e54261a7581241a97e66a1e Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 6 Feb 2022 21:52:51 +0100 Subject: [PATCH] * sorted defines in the compiler: mips64 is defined on all 64 Bit mips platforms, mips64el for little endian, misp64eb for big endian --- compiler/fpcdefs.inc | 4 ++-- compiler/options.pas | 4 ++-- compiler/systems.pas | 4 ++-- compiler/systems/t_linux.pas | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/compiler/fpcdefs.inc b/compiler/fpcdefs.inc index 3ab0b88df6..569daa345d 100644 --- a/compiler/fpcdefs.inc +++ b/compiler/fpcdefs.inc @@ -276,10 +276,10 @@ {$endif mips} {$endif mipsel} -{$ifdef mips64} +{$ifdef mips64eb} {$define mips} {$define mips64} -{$endif mips64} +{$endif mips64eb} {$ifdef mips64el} {$define mips} diff --git a/compiler/options.pas b/compiler/options.pas index f8777cd653..79b518ae50 100644 --- a/compiler/options.pas +++ b/compiler/options.pas @@ -4204,7 +4204,7 @@ procedure read_arguments(cmd:TCmdStr); def_system_macro('FPC_LOCALS_ARE_STACK_REG_RELATIVE'); {$endif mipseb} - {$ifdef mips64} + {$ifdef mips64eb} def_system_macro('CPUMIPS'); def_system_macro('CPUMIPS64'); def_system_macro('CPUMIPSEB64'); @@ -4216,7 +4216,7 @@ procedure read_arguments(cmd:TCmdStr); def_system_macro('FPC_REQUIRES_PROPER_ALIGNMENT'); { See comment above for mipsel } def_system_macro('FPC_LOCALS_ARE_STACK_REG_RELATIVE'); - {$endif mips64} + {$endif mips64eb} {$ifdef mips64el} def_system_macro('CPUMIPS'); diff --git a/compiler/systems.pas b/compiler/systems.pas index fc64b85d3b..7acb05f158 100644 --- a/compiler/systems.pas +++ b/compiler/systems.pas @@ -1204,9 +1204,9 @@ begin {$endif ndef default_target_set} {$endif xtensa} -{$ifdef mips64} +{$ifdef mips64eb} default_target(system_mips64_linux); -{$endif mips64} +{$endif mips64eb} {$ifdef mips64el} default_target(system_mips64el_linux); diff --git a/compiler/systems/t_linux.pas b/compiler/systems/t_linux.pas index 89b29caa1f..febd93d8ac 100644 --- a/compiler/systems/t_linux.pas +++ b/compiler/systems/t_linux.pas @@ -1316,11 +1316,11 @@ initialization RegisterTarget(system_mipseb_linux_info); {$endif MIPSEL} {$endif MIPS32} -{$ifdef MIPS64} +{$ifdef MIPS64EB} RegisterImport(system_mips64_linux,timportliblinux); RegisterExport(system_mips64_linux,texportliblinux); RegisterTarget(system_mips64_linux_info); -{$endif MIPS64} +{$endif MIPS64EB} {$ifdef MIPS64EL} RegisterImport(system_mips64el_linux,timportliblinux); RegisterExport(system_mips64el_linux,texportliblinux);