2
0
Эх сурвалжийг харах

Workaround for IE 20060521 when building the ARM compiler

git-svn-id: trunk@30733 -
Jeppe Johansen 10 жил өмнө
parent
commit
b6729a8f0b

+ 6 - 1
compiler/arm/aasmcpu.pas

@@ -2685,8 +2685,13 @@ implementation
         end;
         end;
 
 
       function getcoprocreg(reg: tregister): byte;
       function getcoprocreg(reg: tregister): byte;
+        var
+          tmpr: tregister;
         begin
         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;
         end;
 
 
       function getmmreg(reg: tregister): byte;
       function getmmreg(reg: tregister): byte;