Browse Source

* there can be a tai_stab between lock/rep and the next opcode

git-svn-id: trunk@8716 -
peter 18 năm trước cách đây
mục cha
commit
1e28adac60
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      compiler/x86/agx86int.pas

+ 6 - 2
compiler/x86/agx86int.pas

@@ -703,8 +703,12 @@ implementation
                    (taicpu(hp).opcode = A_REPNE)) then
                 Begin
                   prefix:=std_op2str[taicpu(hp).opcode]+#9;
-                  hp:=tai(hp.next);
-                { this is theorically impossible... }
+                  { there can be a stab inbetween when the opcode was on
+                    a different line in the source code }
+                  repeat
+                    hp:=tai(hp.next);
+                  until (hp=nil) or (hp.typ=ait_instruction);
+                  { this is theorically impossible... }
                   if hp=nil then
                    begin
                      AsmWriteLn(#9#9+prefix);