소스 검색

* fix warnings when compiling the compiler with DFA optimizer enabled on i386

git-svn-id: trunk@28497 -
Károly Balogh 11 년 전
부모
커밋
07ad2a04ac
3개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      compiler/i386/n386add.pas
  2. 1 0
      compiler/systems/t_aros.pas
  3. 4 0
      compiler/x86/nx86mat.pas

+ 2 - 0
compiler/i386/n386add.pas

@@ -442,6 +442,8 @@ interface
 
     begin
       pass_left_right;
+      reg:=NR_NO;
+      reference_reset(ref,sizeof(pint));
 
       { Mul supports registers and references, so if not register/reference,
         load the location into a register.

+ 1 - 0
compiler/systems/t_aros.pas

@@ -267,6 +267,7 @@ function TLinkeraros.MakeExecutable:boolean;
 var
   success : boolean;
 begin
+  success:=false;
   if not(cs_link_nolink in current_settings.globalswitches) then
     Message1(exec_i_linking,current_module.exefilename);
 

+ 4 - 0
compiler/x86/nx86mat.pas

@@ -99,6 +99,7 @@ interface
         op : tasmop;
         hreg : tregister;
       begin
+        op:=A_NONE;
         secondpass(left);
         location_reset(location,LOC_MMXREGISTER,OS_NO);
         hreg:=tcgx86(cg).getmmxregister(current_asmdata.CurrAsmList);
@@ -142,6 +143,9 @@ interface
              mmxs32bit,mmxu32bit:
                op:=A_PSUBD;
           end;
+        if op = A_NONE then
+          internalerror(201408202);
+
         emit_reg_reg(op,S_NO,location.register,hreg);
         emit_reg_reg(A_MOVQ,S_NO,hreg,location.register);
       end;