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

Re: [RFC] Bare bones of virtual call tracking


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


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