浏览代码

* ie on powerpc fixed: synching of fpu register variables wasn't implemented, maybe subject to be merged back to 2.0.x

git-svn-id: trunk@1078 -
florian 20 年之前
父节点
当前提交
5c35fd818d
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      compiler/ncgbas.pas

+ 9 - 0
compiler/ncgbas.pas

@@ -486,6 +486,15 @@ interface
               if release_to_normal then
                 tempinfo^.location.loc := LOC_REGISTER;
             end;
+          LOC_CFPUREGISTER,
+          LOC_FPUREGISTER:
+            begin
+              { make sure the register allocator doesn't reuse the }
+              { register e.g. in the middle of a loop              }
+              cg.a_reg_sync(exprasmlist,tempinfo^.location.register);
+              if release_to_normal then
+                tempinfo^.location.loc := LOC_FPUREGISTER;
+            end;
           else
             internalerror(200507161);
         end;