This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][2/2] early LTO debug, main part
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: Jason Merrill <jason at redhat dot com>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 20 Sep 2017 10:31:49 +0200
- Subject: Re: [PATCH][2/2] early LTO debug, main part
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jakub at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C9A1C7E429
- References: <alpine.LSU.2.20.1705191235260.20726@zhemvz.fhfr.qr> <7c94dcc5-ee25-76ca-8abb-e0a22b57cba2@redhat.com> <alpine.LSU.2.20.1708021029230.10808@zhemvz.fhfr.qr> <CADzB+2nDWZOom8MaM-dEFjTNwDTRB6Kq0jSAWr=4nXDu702m2A@mail.gmail.com> <alpine.LSU.2.20.1708031142210.10808@zhemvz.fhfr.qr> <CADzB+2nHQOAOmSO86LzGwWgyUm=kKxMk=KeKosMbOXQAkb6rvg@mail.gmail.com> <alpine.LSU.2.20.1708041418140.10808@zhemvz.fhfr.qr> <20170919152414.GR1701@tucnak> <20170919212209.GT1701@tucnak> <alpine.LSU.2.20.1709200944100.26836@zhemvz.fhfr.qr>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Sep 20, 2017 at 10:20:03AM +0200, Richard Biener wrote:
> Anyway, I did a quick LTO bootstrap with your patch and it seems
> to work fine.
>
> Can you add a testcase verifying -gdwarf-5 works ok (properly
> emitting a debug_line_str section?).
I'm afraid I can't. We don't have a command line switch for
DWARF2_ASM_LINE_DEBUG_INFO, it is something tested solely at configure time
(I've noticed this because my working directory for whatever reason
(many hundreds of reconfigures) doesn't have this defined), and we actually emit
proper DWARF5 .debug_line{,_str} only in that case; when using .file
directives, it is waiting for missing binutils support.
Perhaps we should add -fno-dwarf2-loc-asm to force emitting .debug_line*
by gcc?
As for general DWARF5 testing, I think best coverage is GDB (say guality
testing with -gdwarf-5), I think GDB 8.0 should have the needed support.
I'll try to install it (am only at 7.12.1 right now) and try to do some
testing.
Jakub