瀏覽代碼

* fixed DFA warnings for i8086

git-svn-id: trunk@28504 -
Károly Balogh 11 年之前
父節點
當前提交
dd67fa8c5c
共有 3 個文件被更改,包括 6 次插入0 次删除
  1. 3 0
      compiler/i8086/n8086add.pas
  2. 1 0
      compiler/i8086/n8086mat.pas
  3. 2 0
      compiler/x86/agx86nsm.pas

+ 3 - 0
compiler/i8086/n8086add.pas

@@ -960,6 +960,9 @@ interface
       asmops: array[boolean] of tasmop = (A_IMUL, A_MUL);
 
     begin
+      reg:=NR_NO;
+      reference_reset(ref,sizeof(pint));
+
       pass_left_right;
 
       { MUL is faster than IMUL on the 8086 & 8088 (and equal in speed on 286+),

+ 1 - 0
compiler/i8086/n8086mat.pas

@@ -398,6 +398,7 @@ implementation
         hreg64hi:=left.location.register64.reghi;
         hreg64lo:=left.location.register64.reglo;
 
+        v:=0;
         if right.nodetype=ordconstn then
           v:=Tordconstnode(right).value and 63;
 

+ 2 - 0
compiler/x86/agx86nsm.pas

@@ -1302,6 +1302,8 @@ interface
         case target_info.system of
           system_i8086_msdos:
             FormatName:='obj';
+          else
+            internalerror(2014082060);
         end;
 {$endif i8086}
 {$ifdef i386}