Переглянути джерело

Workaround for IE 20060521 when building the ARM compiler

git-svn-id: trunk@30733 -
Jeppe Johansen 10 роки тому
батько
коміт
b6729a8f0b
1 змінених файлів з 6 додано та 1 видалено
  1. 6 1
      compiler/arm/aasmcpu.pas

+ 6 - 1
compiler/arm/aasmcpu.pas

@@ -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;