mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-09 18:46:07 +02:00
* better recognization of procedure exit code
git-svn-id: trunk@41060 -
This commit is contained in:
parent
24f6cc0da5
commit
6cb6517411
@ -949,6 +949,14 @@ unit aoptx86;
|
|||||||
GetNextInstruction(p,hp2) and
|
GetNextInstruction(p,hp2) and
|
||||||
MatchInstruction(hp2,A_RET,[S_NO])
|
MatchInstruction(hp2,A_RET,[S_NO])
|
||||||
) or
|
) or
|
||||||
|
(((taicpu(p).opcode=A_LEA) and
|
||||||
|
MatchOpType(taicpu(p),top_ref,top_reg) and
|
||||||
|
(taicpu(p).oper[0]^.ref^.base=NR_STACK_POINTER_REG) and
|
||||||
|
(taicpu(p).oper[1]^.reg=NR_STACK_POINTER_REG)
|
||||||
|
) and
|
||||||
|
GetNextInstruction(p,hp2) and
|
||||||
|
MatchInstruction(hp2,A_RET,[S_NO])
|
||||||
|
) or
|
||||||
((((taicpu(p).opcode=A_MOV) and
|
((((taicpu(p).opcode=A_MOV) and
|
||||||
MatchOpType(taicpu(p),top_reg,top_reg) and
|
MatchOpType(taicpu(p),top_reg,top_reg) and
|
||||||
(taicpu(p).oper[0]^.reg=current_procinfo.framepointer) and
|
(taicpu(p).oper[0]^.reg=current_procinfo.framepointer) and
|
||||||
|
Loading…
Reference in New Issue
Block a user