mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-24 10:01:33 +02:00
* Fixed bug introduced by r7667. Do not release pushed return value be callee for cdecl on win32. It fixes error3 of bug #9098.
git-svn-id: trunk@7734 -
This commit is contained in:
parent
a1108a8fbb
commit
93e72c2079
@ -310,7 +310,9 @@ unit cgcpu;
|
||||
(not use_fixed_stack) then
|
||||
begin
|
||||
{ complex return values are removed from stack in C code PM }
|
||||
if paramanager.ret_in_param(current_procinfo.procdef.returndef,
|
||||
{ but not on win32 }
|
||||
if (target_info.system <> system_i386_win32) and
|
||||
paramanager.ret_in_param(current_procinfo.procdef.returndef,
|
||||
current_procinfo.procdef.proccalloption) then
|
||||
list.concat(Taicpu.Op_const(A_RET,S_W,sizeof(aint)))
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user