mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 13:59:47 +02:00
* no longer change r12 when fpu regs have to saved, corrupted copying of
stack parameters coming after that git-svn-id: trunk@130 -
This commit is contained in:
parent
bc223811c3
commit
aea6563bba
@ -1174,9 +1174,12 @@ const
|
||||
end;
|
||||
end;
|
||||
|
||||
{ compute end of gpr save area }
|
||||
a_op_const_reg(list,OP_ADD,OS_ADDR,href.offset+8,NR_R12);
|
||||
end;
|
||||
{ compute start of gpr save area }
|
||||
inc(href.offset,4);
|
||||
end
|
||||
else
|
||||
{ compute start of gpr save area }
|
||||
reference_reset_base(href,NR_R12,-4);
|
||||
|
||||
{ save gprs and fetch GOT pointer }
|
||||
if usesgpr then
|
||||
@ -1190,7 +1193,6 @@ const
|
||||
else
|
||||
a_call_name(objectlibrary.newasmsymbol('_savegpr_'+tostr(ord(firstreggpr)-ord(R_14)+14),AB_EXTERNAL,AT_FUNCTION))
|
||||
}
|
||||
reference_reset_base(href,NR_R12,-4);
|
||||
for regcounter2:=RS_R13 to RS_R31 do
|
||||
begin
|
||||
if regcounter2 in rg[R_INTREGISTER].used_in_proc then
|
||||
|
Loading…
Reference in New Issue
Block a user