On Aug 24, 2016, Richard Biener <richard.guent...@gmail.com> wrote: > The issue with LTO / early debug is that we can't prune DIEs that refer > to optimized out entities from early debug output thus we have to create > those DIEs late only (in the above case, as tmpl_value_param_die_table > is not streamed, not at all for LTO).
I don't fully understand the problem you describe, but I wonder if the infrastructure I wrote for the PR59319 patch, to revisit DIEs and prune them if they reference other pruned DIEs, would help. -- Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer