[fpc-devel] Bug 18702
Joost van der Sluis
joost at cnoc.nl
Wed Aug 22 20:38:52 CEST 2012
I saw some activity on this bug, so I thought it would be a good idea to
draw some attention to this message.
On Sat, 2011-12-24 at 16:03 +0100, Joost van der Sluis wrote:
> Hi all,
> Seems like it that bug 18702 has nothing to do with my changes to the
> stack-balancing code, and that nested function proc's never functioned
> well on Windows.
> The problem is that pop_parasize() is used to pop the stack-frame
> pointer form the stack. But on 32-bit Windows, pop_parasize() has some
> code to ensure that the funcret pointer is removed from the stack by the
> caller. This is not applicable to the situation where only the
> stack-frame pointer has to be popped from the stack.
> A possible solution is attached, but I didn't commit it yet because I'm
> nut sure if it is 'allowed' to use a 'target_info.system =
> system_i386_win32' condition in ncgcal.pas. Other solutions could be to
> add a parameter to pop_parasize or to add something like
More information about the fpc-devel