This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help with IA64 profiling bug - g++.dg/tree-prof/indir-call-prof.C
- From: Andreas Schwab <schwab at suse dot de>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 07 Oct 2008 17:55:11 +0200
- Subject: Re: Help with IA64 profiling bug - g++.dg/tree-prof/indir-call-prof.C
- References: <200810062318.m96NIWM07066@lucas.cup.hp.com>
Steve Ellcey <sje@cup.hp.com> writes:
> This is about as far as I have gotten. I am not sure why there is this
> difference or how to fix it. I *think* it may be related to the fact
> that IA64 GCC defines TARGET_VTABLE_USES_DESCRIPTORS but my only reason
> for thinking that is that IA64 is the only platform that defines this
> macro and I think that the profiler must be getting callee addresses out
> of the vtable (though I am not sure about that and I don't know where it
> would be doing it from).
I think to make that work tree_gen_ic_profiler and
tree_gen_ic_func_profiler would have to dereference the function
descriptor to extract the code address, which would then have the
necessary uniqueness which the vtable function descriptor lacks.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."