Workaround for IE 20060521 when building the ARM compiler

git-svn-id: trunk@30733 -
This commit is contained in:
Jeppe Johansen 2015-04-26 20:10:57 +00:00
parent 5c8d0d87cd
commit b6729a8f0b

View File

@ -2685,8 +2685,13 @@ implementation
end;
function getcoprocreg(reg: tregister): byte;
var
tmpr: tregister;
begin
result:=getsupreg(reg)-getsupreg(NR_CR0);
{ FIXME: temp variable r is needed here to avoid Internal error 20060521 }
{ while compiling the compiler. }
tmpr:=NR_CR0;
result:=getsupreg(reg)-getsupreg(tmpr);
end;
function getmmreg(reg: tregister): byte;