Browse Source

* sorted defines in the compiler: mips64 is defined on all 64 Bit mips platforms, mips64el for little endian, misp64eb for big endian

florian 3 years ago
parent
commit
28964711d7
4 changed files with 8 additions and 8 deletions
  1. 2 2
      compiler/fpcdefs.inc
  2. 2 2
      compiler/options.pas
  3. 2 2
      compiler/systems.pas
  4. 2 2
      compiler/systems/t_linux.pas

+ 2 - 2
compiler/fpcdefs.inc

@@ -276,10 +276,10 @@
   {$endif mips}
   {$endif mips}
 {$endif mipsel}
 {$endif mipsel}
 
 
-{$ifdef mips64}
+{$ifdef mips64eb}
   {$define mips}
   {$define mips}
   {$define mips64}
   {$define mips64}
-{$endif mips64}
+{$endif mips64eb}
 
 
 {$ifdef mips64el}
 {$ifdef mips64el}
   {$define mips}
   {$define mips}

+ 2 - 2
compiler/options.pas

@@ -4204,7 +4204,7 @@ procedure read_arguments(cmd:TCmdStr);
         def_system_macro('FPC_LOCALS_ARE_STACK_REG_RELATIVE');
         def_system_macro('FPC_LOCALS_ARE_STACK_REG_RELATIVE');
       {$endif mipseb}
       {$endif mipseb}
 
 
-      {$ifdef mips64}
+      {$ifdef mips64eb}
         def_system_macro('CPUMIPS');
         def_system_macro('CPUMIPS');
         def_system_macro('CPUMIPS64');
         def_system_macro('CPUMIPS64');
         def_system_macro('CPUMIPSEB64');
         def_system_macro('CPUMIPSEB64');
@@ -4216,7 +4216,7 @@ procedure read_arguments(cmd:TCmdStr);
         def_system_macro('FPC_REQUIRES_PROPER_ALIGNMENT');
         def_system_macro('FPC_REQUIRES_PROPER_ALIGNMENT');
         { See comment above for mipsel }
         { See comment above for mipsel }
         def_system_macro('FPC_LOCALS_ARE_STACK_REG_RELATIVE');
         def_system_macro('FPC_LOCALS_ARE_STACK_REG_RELATIVE');
-      {$endif mips64}
+      {$endif mips64eb}
 
 
       {$ifdef mips64el}
       {$ifdef mips64el}
         def_system_macro('CPUMIPS');
         def_system_macro('CPUMIPS');

+ 2 - 2
compiler/systems.pas

@@ -1204,9 +1204,9 @@ begin
   {$endif ndef default_target_set}
   {$endif ndef default_target_set}
 {$endif xtensa}
 {$endif xtensa}
 
 
-{$ifdef mips64}
+{$ifdef mips64eb}
   default_target(system_mips64_linux);
   default_target(system_mips64_linux);
-{$endif mips64}
+{$endif mips64eb}
 
 
 {$ifdef mips64el}
 {$ifdef mips64el}
   default_target(system_mips64el_linux);
   default_target(system_mips64el_linux);

+ 2 - 2
compiler/systems/t_linux.pas

@@ -1316,11 +1316,11 @@ initialization
   RegisterTarget(system_mipseb_linux_info);
   RegisterTarget(system_mipseb_linux_info);
 {$endif MIPSEL}
 {$endif MIPSEL}
 {$endif MIPS32}
 {$endif MIPS32}
-{$ifdef MIPS64}
+{$ifdef MIPS64EB}
   RegisterImport(system_mips64_linux,timportliblinux);
   RegisterImport(system_mips64_linux,timportliblinux);
   RegisterExport(system_mips64_linux,texportliblinux);
   RegisterExport(system_mips64_linux,texportliblinux);
   RegisterTarget(system_mips64_linux_info);
   RegisterTarget(system_mips64_linux_info);
-{$endif MIPS64}
+{$endif MIPS64EB}
 {$ifdef MIPS64EL}
 {$ifdef MIPS64EL}
   RegisterImport(system_mips64el_linux,timportliblinux);
   RegisterImport(system_mips64el_linux,timportliblinux);
   RegisterExport(system_mips64el_linux,texportliblinux);
   RegisterExport(system_mips64el_linux,texportliblinux);