mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 16:49:20 +02:00
* synchronize reg. variables before loading the function result
git-svn-id: trunk@2163 -
This commit is contained in:
parent
f7d2c47f73
commit
a71d2b432c
@ -825,12 +825,6 @@ implementation
|
|||||||
free_regvars(aktproccode);
|
free_regvars(aktproccode);
|
||||||
{$endif OLDREGVARS}
|
{$endif OLDREGVARS}
|
||||||
|
|
||||||
{ add code that will load the return value, this is not done
|
|
||||||
for assembler routines when they didn't reference the result
|
|
||||||
variable }
|
|
||||||
gen_load_return_value(templist);
|
|
||||||
aktproccode.concatlist(templist);
|
|
||||||
|
|
||||||
{ generate symbol and save end of header position }
|
{ generate symbol and save end of header position }
|
||||||
aktfilepos:=entrypos;
|
aktfilepos:=entrypos;
|
||||||
gen_proc_symbol(templist);
|
gen_proc_symbol(templist);
|
||||||
@ -844,6 +838,12 @@ implementation
|
|||||||
gen_free_symtable(aktproccode,procdef.localst);
|
gen_free_symtable(aktproccode,procdef.localst);
|
||||||
gen_free_symtable(aktproccode,procdef.parast);
|
gen_free_symtable(aktproccode,procdef.parast);
|
||||||
|
|
||||||
|
{ add code that will load the return value, this is not done
|
||||||
|
for assembler routines when they didn't reference the result
|
||||||
|
variable }
|
||||||
|
gen_load_return_value(templist);
|
||||||
|
aktproccode.concatlist(templist);
|
||||||
|
|
||||||
{ Already reserve all registers for stack checking code and
|
{ Already reserve all registers for stack checking code and
|
||||||
generate the call to the helper function }
|
generate the call to the helper function }
|
||||||
if (cs_check_stack in entryswitches) and
|
if (cs_check_stack in entryswitches) and
|
||||||
|
Loading…
Reference in New Issue
Block a user