On Tue, Jan 13, 2015 at 02:26:39PM +0100, Richard Biener wrote: > The following seems to work (for the testcase). Testing coverage > of this mode will of course be bad.
LGTM. > 2015-01-13 Richard Biener <rguent...@suse.de> > > PR lto/64415 > * tree-inline.c (insert_debug_decl_map): Check destination > function MAY_HAVE_DEBUG_STMTS. > (insert_init_debug_bind): Likewise. > (insert_init_stmt): Remove redundant check. > (remap_gimple_stmt): Drop debug stmts if the destination > function has var-tracking assignments disabled. > > * gcc.dg/lto/pr64415_0.c: New testcase. > * gcc.dg/lto/pr64415_1.c: Likewise. Jakub