This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Clarification of cloned function names during profiling
- From: Joe Seymour <jseymour at codesourcery dot com>
- To: Paulo Matos <pmatos at broadcom dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 28 Mar 2013 15:17:23 +0000
- Subject: Re: Clarification of cloned function names during profiling
- References: <19EB96622A777C4AB91610E763265F461B292C at SJEXCHMB14 dot corp dot ad dot broadcom dot com>
On 03/28/13 09:40, Paulo Matos wrote:
> In certain situations, GCC will produce functions called foo.isra.0 or
> foo.constprop.0. These function names are created by
> clone_function_name where suffix is isra or constprop.
>
> On the other hand in gprof/corefile.c (function core_sym_class) of
> binutils, symbols that don't include a '.clone.' (which used to be
> generated by 4.5 at least) are discarded (from 2.23.2).
I had a patch committed to trunk gprof that taught it to handle
".constprop" functions correctly:
http://sourceware.org/ml/binutils/2012-09/msg00260.html
I suppose a similar patch would be required for isra functions as
well...