On Aug 21, 2013, at 11:47 PM, Jan Hubicka <hubi...@ucw.cz> wrote:
>> The problem is that DECL_ARGUMENTS of the thunk (aka _ZThn528_N1D3fooEv) is 
>> used during thunk code-generation, and thunk code-generation happens during 
>> the output of D::foo.

> I see, I will try to modify i386 backend to not output thunks.  The problem
> indeed is that thunks' arguments are built by the front-end and they are no
> longer streamed.  I am surprised i386 survives this given that it also
> produces some gimple thunks.
> 
> I guess easiest way around is to make them to be streamed same way as we 
> stream
> functions that are used as abstract origin.  I have different plans in this
> direction - I want to lower thunks to gimple form early so they go through the
> usual channel and get i.e. the profile read correctly.

So, any news on this?

Reply via email to