This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Bare bones of virtual call tracking
- From: Jason Merrill <jason at redhat dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>, gcc-patches at gcc dot gnu dot org, mjambor at suse dot cz
- Date: Mon, 12 Aug 2013 11:29:48 -0400
- Subject: Re: [RFC] Bare bones of virtual call tracking
- References: <20130812121624 dot GF22678 at kam dot mff dot cuni dot cz>
On 08/12/2013 08:16 AM, Jan Hubicka wrote:
With multiple inheritance I need to adjust offsets.
It's not clear to me that you need to worry about that in your search.
A call through a particular vptr can only call overrides that go into a
vtable that vptr can point to, and you can look up any thunk adjustments
from the vtable.
+ /* First skip wrappers that C++ FE puts randomly into types. */
+ while (TREE_CODE (t) == TYPE_DECL
+ && DECL_ORIGINAL_TYPE (t))
How can you get a decl in your types array?
Jason