This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/2] DWARF: make it possible to emit debug info for declarations only
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Pierre-Marie de Rodat <derodat at adacore dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 21 Jun 2017 09:11:25 +0200
- Subject: Re: [PATCH 2/2] DWARF: make it possible to emit debug info for declarations only
- Authentication-results: sourceware.org; auth=none
- References: <20170529075011.15538-1-derodat@adacore.com> <20170529075011.15538-2-derodat@adacore.com> <CAFiYyc3NfKn+3BshKjhwH-U31TkyUEeJ62BezkF0rkbTvshQbQ@mail.gmail.com> <e1c06a8e-7a5f-9b16-8ef2-7aac1ee538ec@adacore.com> <CAFiYyc3A+NU6d-ZtGqO8NKHa7nwJ0S-Ov4JT2TwMc=6PErf0xQ@mail.gmail.com> <4037968f-4a71-96dd-c414-b472312b9e5c@adacore.com> <c12eddec-7372-0ee1-aba2-1f83d2744e9b@adacore.com> <CAFiYyc1LS0pps+RURi0OpkgoT9Ha-ToP9JXf6acN3mj3UsRkKw@mail.gmail.com> <49e45f2c-80b1-16ee-a2f7-05bfd067cd2d@adacore.com>
On Tue, Jun 20, 2017 at 4:34 PM, Pierre-Marie de Rodat
<derodat@adacore.com> wrote:
> On 06/20/2017 02:16 PM, Richard Biener wrote:
>>
>> Nice. This looks ok.
>
>
> Great, thank you!
>
>> I'm mildy curious about the deecrease of debuginfo size for cc1 -- did
>> you spot anything obvious there?
>
>
> Well, the benchmark I exposed was for the whole file size, not just
> .debug_info section size. Just to be sure, I compared object files for both
> trunk and my patched tree: outside of Ada units, I only get the following
> evolution:
>>
>> gcc/dwarf2out.o: -10168 bytes
>> gcc/godump.o: +272 bytes
>> gcc/passes.o: +880 bytes
>
>
> This diff comes from my changes themselves. I had a quick look at the same
> for cc1’s .debug_info: there is the expected evolution, too,
>
>> I suspect Fortran wants to do sth similar as Ada for imported modules.
>
>
> Maybe. I have zero Fortran knowledge, so I’ll let a Fortran expert decide,
> if that is fine for you. :-) In any case, the back-end is ready for that.
Sure, no obligation for you to enhance Fortran debug!
Thanks,
Richard.
> --
> Pierre-Marie de Rodat