浏览代码

* Don't emit "Temps allocated between..." comment in assembler listing if procedure has no temps.

git-svn-id: trunk@26660 -
sergei 11 年之前
父节点
当前提交
949907f1f3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/ncgutil.pas

+ 2 - 1
compiler/ncgutil.pas

@@ -1362,7 +1362,8 @@ implementation
         current_asmdata.asmcfi.start_frame(list);
         current_asmdata.asmcfi.start_frame(list);
 
 
         { All temps are know, write offsets used for information }
         { All temps are know, write offsets used for information }
-        if (cs_asm_source in current_settings.globalswitches) then
+        if (cs_asm_source in current_settings.globalswitches) and
+           (current_procinfo.tempstart<>tg.lasttemp) then
           begin
           begin
             if tg.direction>0 then
             if tg.direction>0 then
               begin
               begin