mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 18:07:56 +02:00
* fixed size of base stack frame for ELFv2
git-svn-id: trunk@42835 -
This commit is contained in:
parent
3d64594ad7
commit
a6a6c2cb07
@ -298,8 +298,12 @@ function tcpuparamanager.ret_in_param(def: tdef; pd: tabstractprocdef): boolean;
|
||||
procedure tcpuparamanager.init_values(var curintreg, curfloatreg, curmmreg:
|
||||
tsuperregister; var cur_stack_offset: aword);
|
||||
begin
|
||||
{ register parameter save area begins at 48(r2) }
|
||||
cur_stack_offset := 48;
|
||||
case target_info.abi of
|
||||
abi_powerpc_elfv2:
|
||||
cur_stack_offset := 32;
|
||||
else
|
||||
cur_stack_offset := 48;
|
||||
end;
|
||||
curintreg := RS_R3;
|
||||
curfloatreg := RS_F1;
|
||||
curmmreg := RS_M2;
|
||||
|
Loading…
Reference in New Issue
Block a user