On Tue, Jan 13, 2015 at 02:04:26PM +0100, Richard Biener wrote:
> The following removes -fvar-tracking-assignments from being eligible
> to the optimization attribute/pragma which fixes LTO operation for
> mixed inputs (LTO just drops debug stmts if the flag is false).
> 
> In theory we could also fix inlining to do that when inlining
> debug stmts into a non-VTA function but I think allowing this 
> kind of per-function IL flags is just silly.

I actually think it makes sense to disable -fvar-tracking-assignments
just for specific function, e.g. when it is known to be too expensive
on some large function you don't care about debug info quality too much,
while you still don't want to disable it on the whole TU level, because
you have other functions (e.g. small ones) you still want to be able to
debug often with good coverage.

So if this is fixable in the inliner and/or LTO in-streamer that would be
my preference.

        Jakub

Reply via email to