This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for "no_instrument_function" attribute
- From: Richard Henderson <rth at redhat dot com>
- To: Will Cohen <wcohen at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Dec 2001 15:25:50 -0800
- Subject: Re: Patch for "no_instrument_function" attribute
- References: <3C1F75FC.5D236B26@redhat.com>
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~