On 04/14/2015 06:35 AM, Richard Biener wrote:
Richard, thank you so much for working on this. It's good to see your
progress here.
the late dwarf generation is a bit awkward because it insists on creating
type DIEs for all sort of contexts when we process scope vars. The type
Types should be reused, are they not being reused from early to late dwarf?
DIEs already exist, but only in early debug info. I suspect we need to do
quite some dwarf2out refactoring to split early from late debug generation
in areas like that. For the C++ example above we get some stray unused
type DIEs still.
A pass to remove unused DIEs is on my TODO list.
Aldy