瀏覽代碼

- removed the check for pocall_oldfpccall from ncgutil.gen_save_used_regs and
gen_restore_used_regs. This is now handled by get_saved_registers_int in
cpupara.

git-svn-id: trunk@38934 -

nickysn 7 年之前
父節點
當前提交
55ecc7feff
共有 1 個文件被更改,包括 2 次插入6 次删除
  1. 2 6
      compiler/ncgutil.pas

+ 2 - 6
compiler/ncgutil.pas

@@ -1376,9 +1376,7 @@ implementation
         if (po_assembler in current_procinfo.procdef.procoptions) then
           exit;
 
-        { oldfpccall expects all registers to be destroyed }
-        if current_procinfo.procdef.proccalloption<>pocall_oldfpccall then
-            cg.g_save_registers(list);
+        cg.g_save_registers(list);
       end;
 
 
@@ -1388,9 +1386,7 @@ implementation
         if (po_assembler in current_procinfo.procdef.procoptions) then
           exit;
 
-        { oldfpccall expects all registers to be destroyed }
-        if current_procinfo.procdef.proccalloption<>pocall_oldfpccall then
-          cg.g_restore_registers(list);
+        cg.g_restore_registers(list);
       end;