Hi,

On Tue, Apr 19, 2011 at 09:07:35AM +0200, Jakub Jelinek wrote:
> On Mon, Apr 18, 2011 at 03:33:18PM -0700, Jason Merrill wrote:
> > On 04/18/2011 02:40 PM, Jakub Jelinek wrote:
> > >If TREE_BINFO has BV_VCALL_INDEX set, this needs to be dynamically
> > >adjusted, but none of the callers are prepared to handle that.
> > 
> > Well, it means that we do dynamic adjustment at runtime.  If we're
> > able to do devirtualization, we should be able to figure out the
> > right offset as well, just not in 4.6.
> 
> Sure, but how exactly?

We could re-use code in assemble_thunk and thunk_adjust in
cgraphunit.c which IIRC is able to deal with these kinds of thunks
too.

That is, if do not opt for some more systematic approach, like making
(most of) them "real function with body in gimple" instead.

Martin

Reply via email to