瀏覽代碼

* do NOT specify R0 as available volatile register. Fixes cycle on ppc64/linux. Most probably the compiler starts using it as temp register which leads to bad code since in some instructions R0 means zero, not the value of R0.

git-svn-id: trunk@7039 -
tom_at_work 18 年之前
父節點
當前提交
9c1604ea44
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/powerpc64/cpupara.pas

+ 1 - 1
compiler/powerpc64/cpupara.pas

@@ -68,7 +68,7 @@ uses
 function tppcparamanager.get_volatile_registers_int(calloption:
   tproccalloption): tcpuregisterset;
 begin
-  result := [RS_R0,RS_R3..RS_R12];
+  result := [RS_R3..RS_R12];
   if (target_info.system = system_powerpc64_darwin) then
     include(result,RS_R2);
 end;