mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 01:59:18 +02:00
* generate an internalerror if there are values remaining on top of stack
at the end of a procedure. If the compiler is compiled with DEBUG_WASMSTACK, the previous asm comment message is emitted instead of internal error.
This commit is contained in:
parent
324382d3a5
commit
d3ec8f0d29
@ -2048,7 +2048,11 @@ implementation
|
|||||||
list.concat(taicpu.op_none(a_end_block));
|
list.concat(taicpu.op_none(a_end_block));
|
||||||
decblock;
|
decblock;
|
||||||
if fevalstackheight<>0 then
|
if fevalstackheight<>0 then
|
||||||
|
{$ifdef DEBUG_WASMSTACK}
|
||||||
list.concat(tai_comment.Create(strpnew('!!! values remaining on stack at end of block !!!')));
|
list.concat(tai_comment.Create(strpnew('!!! values remaining on stack at end of block !!!')));
|
||||||
|
{$else DEBUG_WASMSTACK}
|
||||||
|
internalerror(2021091801);
|
||||||
|
{$endif DEBUG_WASMSTACK}
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user