mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 15:47:53 +02:00
* patch by Christo Crause: r0, r1 are no volatile registers for avr tiny
git-svn-id: trunk@47102 -
This commit is contained in:
parent
e90cf131fe
commit
b8c707ed7e
@ -58,7 +58,7 @@ unit cpupara;
|
||||
function tcpuparamanager.get_volatile_registers_int(calloption : tproccalloption):tcpuregisterset;
|
||||
begin
|
||||
if CPUAVR_16_REGS in cpu_capabilities[current_settings.cputype] then
|
||||
result:=VOLATILE_INTREGISTERS-[RS_R18,RS_R19]
|
||||
result:=VOLATILE_INTREGISTERS-[RS_R0,RS_R1,RS_R18,RS_R19]
|
||||
else
|
||||
result:=VOLATILE_INTREGISTERS;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user