On Mon, May 19, 2014 at 04:45:02PM +0200, Jan Hubicka wrote:
> > On Sun, May 18, 2014 at 9:32 PM, Jan Hubicka <hubi...@ucw.cz> wrote:
> > > Hi,
> > > this patch enables -fdeclone-ctor-dtor by default: I believe it is up to 
> > > the
> > > optimizers to decide when the actual worker body should be inlined into 
> > > the
> > > thunks.
> > >
> > > Bootstrapped/regtested x86_64-linux, OK?
> > 
> > Please make sure to not enable it for -O0 and -Og at least.
> 
> Hmm, I tought this thunk can be implemented without clobbering debug info - 
> all we need is to arrange it to be abstract and not show in unwind info...

I agree with Richard, you don't want to do this for -O0/-Og.
I don't think debuggers can filter functions from unwind info (they can do
that for inlines, but when it is not inlined...), and it will be a terrible
debugging experience if you see extra frame in there.

        Jakub

Reply via email to