This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR85339, bogus early debug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]