Browse Source

Differentiate mips/mipsel default system macros

git-svn-id: trunk@21546 -
pierre 13 years ago
parent
commit
2b90b444bf
1 changed files with 16 additions and 1 deletions
  1. 16 1
      compiler/options.pas

+ 16 - 1
compiler/options.pas

@@ -2881,10 +2881,24 @@ begin
   def_system_macro('FPC_COMP_IS_INT64');
 {$endif jvm}
 
-{$ifdef mips}
+{$ifdef mipsel}
 
 // HIGHLY TENTATIVE, from David Zhang's options.pas. MarkMLl.
+  //def_system_macro('CPUMIPS');
+  //def_system_macro('CPUMIPS32');
+  def_system_macro('CPUMIPSEL');
+  def_system_macro('CPUMIPSEL32');
+  def_system_macro('CPU32');
+//  def_system_macro('FPC_HAS_TYPE_DOUBLE');
+//  def_system_macro('FPC_HAS_TYPE_SINGLE');
+//  def_system_macro('FPC_INCLUDE_SOFTWARE_INT64_TO_DOUBLE');
+  def_system_macro('FPC_CURRENCY_IS_INT64');
+  def_system_macro('FPC_COMP_IS_INT64');
+//  def_system_macro('FPC_REQUIRES_PROPER_ALIGNMENT');
+{$else not mipsel}
+{$ifdef mips}
 
+// HIGHLY TENTATIVE, from David Zhang's options.pas. MarkMLl.
   def_system_macro('CPUMIPS');
   def_system_macro('CPUMIPS32');
   def_system_macro('CPU32');
@@ -2894,6 +2908,7 @@ begin
   def_system_macro('FPC_CURRENCY_IS_INT64');
   def_system_macro('FPC_COMP_IS_INT64');
 //  def_system_macro('FPC_REQUIRES_PROPER_ALIGNMENT');
+{$endif}
 {$endif}
 
   { read configuration file }