Selaa lähdekoodia

* r0 is also volatile

git-svn-id: trunk@7262 -
Jonas Maebe 18 vuotta sitten
vanhempi
commit
544dd57a96
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 2 2
      compiler/powerpc/cpupara.pas
  2. 1 1
      compiler/powerpc64/cpupara.pas

+ 2 - 2
compiler/powerpc/cpupara.pas

@@ -60,9 +60,9 @@ unit cpupara;
     function tppcparamanager.get_volatile_registers_int(calloption : tproccalloption):tcpuregisterset;
     function tppcparamanager.get_volatile_registers_int(calloption : tproccalloption):tcpuregisterset;
       begin
       begin
         if (target_info.system = system_powerpc_darwin) then
         if (target_info.system = system_powerpc_darwin) then
-          result := [RS_R2..RS_R12]
+          result := [RS_R0,RS_R2..RS_R12]
         else
         else
-          result := [RS_R3..RS_R12];
+          result := [RS_R0,RS_R3..RS_R12];
       end;
       end;
 
 
 
 

+ 1 - 1
compiler/powerpc64/cpupara.pas

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