mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 13:50:20 +02:00
* r0 is also volatile
git-svn-id: trunk@7262 -
This commit is contained in:
parent
0caee5b45b
commit
544dd57a96
@ -60,9 +60,9 @@ unit cpupara;
|
||||
function tppcparamanager.get_volatile_registers_int(calloption : tproccalloption):tcpuregisterset;
|
||||
begin
|
||||
if (target_info.system = system_powerpc_darwin) then
|
||||
result := [RS_R2..RS_R12]
|
||||
result := [RS_R0,RS_R2..RS_R12]
|
||||
else
|
||||
result := [RS_R3..RS_R12];
|
||||
result := [RS_R0,RS_R3..RS_R12];
|
||||
end;
|
||||
|
||||
|
||||
|
@ -68,7 +68,7 @@ uses
|
||||
function tppcparamanager.get_volatile_registers_int(calloption:
|
||||
tproccalloption): tcpuregisterset;
|
||||
begin
|
||||
result := [RS_R3..RS_R12];
|
||||
result := [RS_R0,RS_R3..RS_R12];
|
||||
if (target_info.system = system_powerpc64_darwin) then
|
||||
include(result,RS_R2);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user