Parcourir la source

* make x86memorymodel i8086 only

git-svn-id: trunk@25369 -
florian il y a 12 ans
Parent
commit
6e7edf1933
2 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 5 1
      compiler/globals.pas
  2. 2 0
      compiler/options.pas

+ 5 - 1
compiler/globals.pas

@@ -154,11 +154,13 @@ interface
 
          disabledircache : boolean;
 
+{$if defined(i8086)}
          x86memorymodel  : tx86memorymodel;
+{$endif}
 
         { CPU targets with microcontroller support can add a controller specific unit }
 {$if defined(ARM) or defined(AVR)}
-        controllertype   : tcontrollertype;
+         controllertype   : tcontrollertype;
 {$endif defined(ARM) or defined(AVR)}
          { WARNING: this pointer cannot be written as such in record token }
          pmessage : pmessagestaterecord;
@@ -479,7 +481,9 @@ interface
         minfpconstprec : s32real;
 
         disabledircache : false;
+{$if defined(i8086)}
         x86memorymodel : mm_small;
+{$endif defined(i8086)}
 {$if defined(ARM) or defined(AVR)}
         controllertype : ct_none;
 {$endif defined(ARM) or defined(AVR)}

+ 2 - 0
compiler/options.pas

@@ -1847,6 +1847,7 @@ begin
                       end;
                     'm':
                       begin
+{$if defined(i8086)}
                         if (target_info.system in [system_i8086_msdos]) then
                           begin
                             case Upper(Copy(More,j+1,255)) of
@@ -1862,6 +1863,7 @@ begin
                             break;
                           end
                         else
+{$endif defined(i8086)}
                           IllegalPara(opt);
                       end;
                     'M':