This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR85339, bogus early debug
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 11 Apr 2018 14:59:51 +0200
- Subject: Re: [PATCH] Fix PR85339, bogus early debug
- References: <alpine.LSU.2.20.1804111306580.18265@zhemvz.fhfr.qr>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Apr 11, 2018 at 01:09:39PM +0200, Richard Biener wrote:
> 2018-04-11 Richard Biener <rguenther@suse.de>
>
> PR lto/85339
> * dwarf2out.c (dwarf2out_finish): Remove DW_AT_stmt_list attribute
> from early DWARF output.
> (dwarf2out_early_finish): Output line info unconditionally into
> early DWARF and add reference to it.
>
> + if (debug_info_level >= DINFO_LEVEL_TERSE)
> + add_AT_lineptr (comp_unit_die (), DW_AT_stmt_list,
> + dl_section_ref);
No reason to wrap the above line, it fits nicely on one line.
Otherwise LGTM.
Jakub