This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch for "no_instrument_function" attribute


On Tue, Dec 18, 2001 at 11:59:40AM -0500, Will Cohen wrote:
> 	* function.h (struct function): Add profile.
> 	(current_function_profile): New.
> 	* function.c (expand_function_start): Add check to disable
> 	function profiling.
> 	* final.c (final_start_function): Check on per function basis.
> 	(profile_after_prologue): Likewise.
> 	(leaf_function_p): Likewise.

You would additionally require changes to many backends to 
make this work.  E.g. alpha.c alpha_expand_prologue:

  if (TARGET_PROFILING_NEEDS_GP && profile_flag)
    emit_insn (gen_prologue_mcount ());



r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]