mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 00:29:33 +02:00
* improve call0 calling conventions
git-svn-id: trunk@46797 -
This commit is contained in:
parent
ce9d7f9995
commit
93eef547ae
@ -1173,7 +1173,7 @@ implementation
|
||||
with an internal error, so this switch is not enabled by default yet. To overcome this,
|
||||
multipass compilation of subroutines must be supported
|
||||
}
|
||||
if (target_info.abi=abi_xtensa_windowed) and (procdef.stack_tainting_parameter(calleeside)) then
|
||||
if procdef.stack_tainting_parameter(calleeside) then
|
||||
begin
|
||||
include(flags,pi_estimatestacksize);
|
||||
set_first_temp_offset;
|
||||
|
@ -158,6 +158,8 @@ unit cpupara;
|
||||
begin
|
||||
curintreg:=RS_A2;
|
||||
maxintreg:=RS_A7;
|
||||
if (side=calleeside) and (current_procinfo.framepointer=NR_STACK_POINTER_REG) then
|
||||
cur_stack_offset:=(p as tcpuprocdef).total_stackframe_size;
|
||||
end;
|
||||
else
|
||||
Internalerror(2020031404);
|
||||
|
@ -84,7 +84,8 @@ unit cpupi;
|
||||
callins:=A_CALL0;
|
||||
callxins:=A_CALLX0;
|
||||
maxcall:=0;
|
||||
framepointer:=NR_FRAME_POINTER_REG;
|
||||
{ we do not use a frame pointer }
|
||||
framepointer:=NR_STACK_POINTER_REG;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user