* 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:
Károly Balogh 2015-03-02 22:21:53 +00:00
parent b4033efc00
commit a71fcd290b

View File

@ -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