* support multiple paralocs in a_load_reg_cgpara() by taking a round trip

via a_load_ref_cgpara()

git-svn-id: trunk@29814 -
This commit is contained in:
Jonas Maebe 2015-02-23 22:47:29 +00:00
parent 9be4e6a0de
commit e6511bcb33

View File

@ -865,7 +865,14 @@ implementation
ref : treference;
tmpreg : tregister;
begin
cgpara.check_simple_location;
if assigned(cgpara.location^.next) then
begin
tg.gethltemp(list,cgpara.def,cgpara.def.size,tt_persistent,ref);
a_load_reg_ref(list,size,size,r,ref);
a_load_ref_cgpara(list,size,ref,cgpara);
tg.ungettemp(list,ref);
exit;
end;
paramanager.alloccgpara(list,cgpara);
if cgpara.location^.shiftval<0 then
begin