浏览代码

* don't omit stack frame generation when generating gprof information, as
mcount expects the frame pointer to be valid

git-svn-id: trunk@24642 -

Jonas Maebe 12 年之前
父节点
当前提交
a1bc04bbb3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/psub.pas

+ 1 - 0
compiler/psub.pas

@@ -982,6 +982,7 @@ implementation
                 (tabstractlocalsymtable(procdef.localst).count_locals = 0)) or
                ((cs_opt_stackframe in current_settings.optimizerswitches) and
                 not(cs_generate_stackframes in current_settings.localswitches) and
+                not(cs_profile in current_settings.moduleswitches) and
                 not(po_assembler in procdef.procoptions) and
                 ((flags*([pi_has_assembler_block,pi_is_assembler,
                         pi_has_stackparameter,pi_needs_stackframe]+