Преглед на файлове

* fixed compilation with -O3 (one false positive, one real error)

git-svn-id: trunk@40155 -
Jonas Maebe преди 6 години
родител
ревизия
1a9eb77698
променени са 2 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 2 0
      compiler/riscv/aasmcpu.pas
  2. 1 0
      compiler/sparcgen/ncpumat.pas

+ 2 - 0
compiler/riscv/aasmcpu.pas

@@ -444,6 +444,8 @@ uses cutils, cclasses;
                (opcode in [A_FSGNJ_S,A_FSGNJ_D]) and
                (oper[0]^.reg=oper[1]^.reg) and
                (oper[0]^.reg=oper[2]^.reg);
+         else
+           result:=false;
         end;
       end;
 

+ 1 - 0
compiler/sparcgen/ncpumat.pas

@@ -156,6 +156,7 @@ implementation
 
                  if (nodetype = modn) then
                    begin
+                     overflowlabel:=nil;
                      if not no_overflow then
                        begin
                          current_asmdata.getjumplabel(overflowlabel);