浏览代码

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;