소스 검색

* 8086: Do not force far calls in the TP mode by default. This is TP compatible. Other modes need forced far calls by default in order to compile non-TP code.

git-svn-id: trunk@46433 -
yury 5 년 전
부모
커밋
f7d14128b5
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      compiler/scanner.pas

+ 10 - 0
compiler/scanner.pas

@@ -604,6 +604,16 @@ implementation
                  include(init_settings.localswitches,cs_strict_var_strings);
              end;
 
+{$ifdef i8086}
+           { Do not force far calls in the TP mode by default }
+           if (m_tp7 in current_settings.modeswitches) then
+             begin
+               exclude(current_settings.localswitches,cs_force_far_calls);
+               if changeinit then
+                 exclude(init_settings.localswitches,cs_force_far_calls);
+             end;
+{$endif i8086}
+
             { Undefine old symbol }
             if (m_delphi in oldmodeswitches) then
               undef_system_macro('FPC_DELPHI')