* revert part of r45810 which was accidently committed

git-svn-id: trunk@45813 -
This commit is contained in:
florian 2020-07-20 20:21:44 +00:00
parent 0c6998bb11
commit 14bc6674a6
2 changed files with 6 additions and 4 deletions

View File

@ -2352,10 +2352,9 @@ implementation
not trecorddef(self).contains_cross_aword_field and
{ records cannot go into registers on 16 bit targets for now }
(sizeof(aint)>2) and
(not trecorddef(self).contains_float_field) or
(recsize <= sizeof(aint))
) and
not needs_inittable;
not trecorddef(self).contains_float_field
) and
not needs_inittable;
{$endif cpuhighleveltarget}
end;
else

View File

@ -1728,6 +1728,8 @@ implementation
function tabstractvarsym.is_regvar(refpara: boolean):boolean;
var
tempdef : tdef;
begin
{ Register variables are not allowed in the following cases:
- regvars are disabled
@ -1746,6 +1748,7 @@ implementation
{$if not defined(powerpc) and not defined(powerpc64)}
and ((vardef.typ <> recorddef) or
(varregable = vr_addr) or
tabstractrecordsymtable(tabstractrecorddef(vardef).symtable).has_single_field(tempdef) or
not(varstate in [vs_written,vs_readwritten]));
{$endif}
end;