瀏覽代碼

* patch by Christo Crause: r0, r1 are no volatile registers for avr tiny

git-svn-id: trunk@47102 -
(cherry picked from commit b8c707ed7ec518f89df8d3853615a2b556b2fd78)
florian 4 年之前
父節點
當前提交
64ff162e3f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/avr/cpupara.pas

+ 1 - 1
compiler/avr/cpupara.pas

@@ -58,7 +58,7 @@ unit cpupara;
     function tcpuparamanager.get_volatile_registers_int(calloption : tproccalloption):tcpuregisterset;
     function tcpuparamanager.get_volatile_registers_int(calloption : tproccalloption):tcpuregisterset;
       begin
       begin
         if CPUAVR_16_REGS in cpu_capabilities[current_settings.cputype] then
         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
         else
           result:=VOLATILE_INTREGISTERS;
           result:=VOLATILE_INTREGISTERS;
       end;
       end;