From 1e28adac60221d850d20b33d5e97b30bf094d858 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 1 Oct 2007 19:23:49 +0000 Subject: [PATCH] * there can be a tai_stab between lock/rep and the next opcode git-svn-id: trunk@8716 - --- compiler/x86/agx86int.pas | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/compiler/x86/agx86int.pas b/compiler/x86/agx86int.pas index d399aaa2e2..edc3329bac 100644 --- a/compiler/x86/agx86int.pas +++ b/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);