------- Comment #2 from naesten at gmail dot com  2009-06-20 20:03 -------
Oh, hmm ... looks like you're right: I was looking at the wrong function in
objdump -- possibly because the functions somehow came out in a different order
in the object file from the source file.

Perhaps the documentation should be updated to mention that
"no_instrument_function" applies even for -pg? Right now,
http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/Function-Attributes.html only says:

no_instrument_function
    If -finstrument-functions is given, profiling function calls will be
generated at entry and exit of most user-compiled functions. Functions with
this attribute will not be so instrumented.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40498

Reply via email to