This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: LTO early debug, day 2
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>,Jason Merrill <jason at redhat dot com>,GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 14 Apr 2015 19:02:41 +0200
- Subject: Re: LTO early debug, day 2
- Authentication-results: sourceware.org; auth=none
- References: <CAFiYyc1SrjEpp9McTyBzYRSj_O=bms4Pv_k5-LDt6JHC0UPCEA at mail dot gmail dot com> <552D3FE2 dot 8050900 at redhat dot com>
On April 14, 2015 6:27:14 PM GMT+02:00, Aldy Hernandez <aldyh@redhat.com> wrote:
>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?
They are not there in the late phase because they should not be needed
(They are inherited from early debug
But not explicitly rematerialized).
In fact the whole plan is to eventually
Not even have the 'tree' side of the types
Anymore.
Richard.
>
>> 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