* PROFILE_HOOK label_no
@ 2002-04-22 7:21 Alan Modra
2002-04-22 22:00 ` Alan Modra
0 siblings, 1 reply; 2+ messages in thread
From: Alan Modra @ 2002-04-22 7:21 UTC (permalink / raw)
To: gcc
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PROFILE_HOOK label_no
2002-04-22 7:21 PROFILE_HOOK label_no Alan Modra
@ 2002-04-22 22:00 ` Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2002-04-22 22:00 UTC (permalink / raw)
To: gcc; +Cc: John David Anglin
On Mon, Apr 22, 2002 at 11:45:15PM +0930, Alan Modra wrote:
> There's an underlying problem with PROFILE_HOOK and it's label_no
Better description, testcase, and proposed fix in PR target/6413
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-23 3:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-22 7:21 PROFILE_HOOK label_no Alan Modra
2002-04-22 22:00 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).