mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-01 20:02:38 +02:00
+ allow call ref on x86 for references that don't contain any registers, as the register allocator doesn't fail on them, if all registers are allocated
git-svn-id: trunk@32286 -
This commit is contained in:
parent
ef2c6065b6
commit
9de7830c8c
@ -90,7 +90,8 @@ implementation
|
||||
tcgx86(cg).make_simple_ref(current_asmdata.CurrAsmList,ref);
|
||||
{ do not use a ref. for calling conventions which allocate all registers, the reg. allocator cannot handle this, see
|
||||
also issue #28639, I were not able to create a simple example though to cause the resulting endless spilling }
|
||||
result:=not(procdefinition.proccalloption in [pocall_far16,pocall_pascal,pocall_oldfpccall]);
|
||||
result:=((ref.base=NR_NO) and (ref.index=NR_NO)) or
|
||||
not(procdefinition.proccalloption in [pocall_far16,pocall_pascal,pocall_oldfpccall]);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user