* don't omit stack frame generation when generating gprof information, as

mcount expects the frame pointer to be valid

git-svn-id: trunk@24642 -
This commit is contained in:
Jonas Maebe 2013-05-30 13:43:51 +00:00
parent 35939ff0a9
commit a1bc04bbb3

View File

@ -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]+