Ver Fonte

* in PeepHoleOptPass1Cpu when an instruction contains a segment, don't replace the current instruction with the next, cause then we get an infinite loop when compiling on Win32 with -dTEST_WIN32_SEH -O4

git-svn-id: trunk@43704 -
svenbarth há 5 anos atrás
pai
commit
0149d26adb
1 ficheiros alterados com 1 adições e 5 exclusões
  1. 1 5
      compiler/i386/aoptcpu.pas

+ 1 - 5
compiler/i386/aoptcpu.pas

@@ -139,11 +139,7 @@ unit aoptcpu;
             begin
             begin
               current_filepos:=taicpu(p).fileinfo;
               current_filepos:=taicpu(p).fileinfo;
               if InsContainsSegRef(taicpu(p)) then
               if InsContainsSegRef(taicpu(p)) then
-                begin
-                  p:=tai(p.next);
-                  Result:=true;
-                  exit;
-                end;
+                exit;
               case taicpu(p).opcode Of
               case taicpu(p).opcode Of
                 A_AND:
                 A_AND:
                   Result:=OptPass1And(p);
                   Result:=OptPass1And(p);