mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 12:39:25 +02:00
* allocate a temp addressreg instead of a temp intreg in callnode. improves code generation on m68k for these cases
git-svn-id: trunk@30080 -
This commit is contained in:
parent
b4033efc00
commit
a71fcd290b
@ -947,7 +947,7 @@ implementation
|
||||
callref:=can_call_ref(href);
|
||||
if not callref then
|
||||
begin
|
||||
pvreg:=cg.getintregister(current_asmdata.CurrAsmList,proc_addr_size);
|
||||
pvreg:=hlcg.getaddressregister(current_asmdata.CurrAsmList,proc_addr_voidptrdef);
|
||||
cg.a_load_ref_reg(current_asmdata.CurrAsmList,proc_addr_size,proc_addr_size,href,pvreg);
|
||||
end;
|
||||
|
||||
@ -1026,7 +1026,7 @@ implementation
|
||||
secondpass(right);
|
||||
callref:=false;
|
||||
|
||||
pvreg:=cg.getintregister(current_asmdata.CurrAsmList,proc_addr_size);
|
||||
pvreg:=hlcg.getaddressregister(current_asmdata.CurrAsmList,proc_addr_voidptrdef);
|
||||
{ Only load OS_ADDR from the reference (when converting to hlcg:
|
||||
watch out with procedure of object) }
|
||||
if po_is_block in procdefinition.procoptions then
|
||||
|
Loading…
Reference in New Issue
Block a user