This is the mail archive of the gcc@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]

PROFILE_HOOK label_no


There's an underlying problem with PROFILE_HOOK and it's label_no
arg:  Inline function rtl generated by PROFILE_HOOK will use the value
of profile_label_no when the inline function is defined.  For the
out-of-line expansion, this is wrong as profile_label_no has been
incremented once for each intervening function emitted.  Typically,
#ifndef NO_PROFILE_COUNTERS, this will mean _mcount uses the wrong
profile counter.  I'm not sure how to best fix this problem.  The
easiest solution is to simply turn off profiling for such functions.
Ideas?

I think you'll see this on pa, sparc, rs6000 abi_aix.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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