Patch for "no_instrument_function" attribute
Andreas Jaeger
aj@suse.de
Tue Dec 18 09:26:00 GMT 2001
Will Cohen <wcohen@redhat.com> writes:
> The attribute "no_instrument_function" allows the support routines for
> "-finstrument-functions" to be compiled with the same set of options
> as other functions. The operation of this attribute has been extended
> to apply to "-p" and "-pg" options. This will make it much easier to
> compile multilibs such as newlib and have the profiling support within
> the
> library. The profiling support functions should be compiled without
> profiling. With this extension to the "no_instrument_function"
> attribute the profiling support routines in the library will be
> compiled correctly regardless of whether a profiling option is passed
> to the compiler. Is it okay to apply this patch?
Did you test it? Please tell us how and where.
> * 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.
Looking at your patch, you add documentation but you don't mention it
here. For GCC we require ChangeLog entry for the manual,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Gcc-patches
mailing list