This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
PROFILE_HOOK label_no
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 22 Apr 2002 23:45:15 +0930
- Subject: 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