Browse Source

* removed misleading non-working automatic save/restore of registers for profiling code (must be done manually in tcg.g_profilecode)

git-svn-id: trunk@3269 -
tom_at_work 19 years ago
parent
commit
7a068de50a
1 changed files with 0 additions and 2 deletions
  1. 0 2
      compiler/ncgutil.pas

+ 0 - 2
compiler/ncgutil.pas

@@ -1691,9 +1691,7 @@ implementation
             if not (target_info.system in [system_i386_win32,system_i386_wdosx]) or
             if not (target_info.system in [system_i386_win32,system_i386_wdosx]) or
                not (current_procinfo.procdef.proctypeoption=potype_proginit) then
                not (current_procinfo.procdef.proctypeoption=potype_proginit) then
               begin
               begin
-                cg.allocallcpuregisters(list);
                 cg.g_profilecode(list);
                 cg.g_profilecode(list);
-                cg.deallocallcpuregisters(list);
               end;
               end;
           end;
           end;