mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 23:19:24 +02:00
PPC64: don't save TOC in pure assembler routines
Fix by Pierre
(cherry picked from commit 0fcc57fb4b
)
This commit is contained in:
parent
89bf3fe5ea
commit
076c9b06c1
@ -1255,7 +1255,8 @@ begin
|
||||
|
||||
{ save current RTOC for restoration after calls if necessary }
|
||||
if (pi_do_call in current_procinfo.flags) and
|
||||
(target_info.abi in abis_ppc_toc) then
|
||||
(target_info.abi in abis_ppc_toc) and
|
||||
not nostackframe then
|
||||
begin
|
||||
reference_reset_base(href,NR_STACK_POINTER_REG,get_rtoc_offset,ctempposinvalid,target_info.stackalign,[]);
|
||||
a_load_reg_ref(list,OS_ADDR,OS_ADDR,NR_RTOC,href);
|
||||
|
Loading…
Reference in New Issue
Block a user