Commit 3c780bb2 by Richard Biener Committed by Richard Biener

re PR lto/65015 (LTO produces randomly ordered debug information)

2015-02-13  Richard Biener  <rguenther@suse.de>

	PR lto/65015
	* dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
	for LTO produced CUs.

From-SVN: r220678
parent fa008882
2015-02-13 Richard Biener <rguenther@suse.de>
PR lto/65015
* dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
for LTO produced CUs.
2015-02-13 Bin Cheng <bin.cheng@arm.com> 2015-02-13 Bin Cheng <bin.cheng@arm.com>
PR tree-optimization/64705 PR tree-optimization/64705
......
...@@ -24527,8 +24527,13 @@ dwarf2out_finish (const char *filename) ...@@ -24527,8 +24527,13 @@ dwarf2out_finish (const char *filename)
gen_remaining_tmpl_value_param_die_attribute (); gen_remaining_tmpl_value_param_die_attribute ();
/* Add the name for the main input file now. We delayed this from /* Add the name for the main input file now. We delayed this from
dwarf2out_init to avoid complications with PCH. */ dwarf2out_init to avoid complications with PCH.
add_name_attribute (comp_unit_die (), remap_debug_filename (filename)); For LTO produced units use a fixed artificial name to avoid
leaking tempfile names into the dwarf. */
if (!in_lto_p)
add_name_attribute (comp_unit_die (), remap_debug_filename (filename));
else
add_name_attribute (comp_unit_die (), "<artificial>");
if (!IS_ABSOLUTE_PATH (filename) || targetm.force_at_comp_dir) if (!IS_ABSOLUTE_PATH (filename) || targetm.force_at_comp_dir)
add_comp_dir_attribute (comp_unit_die ()); add_comp_dir_attribute (comp_unit_die ());
else if (get_AT (comp_unit_die (), DW_AT_comp_dir) == NULL) else if (get_AT (comp_unit_die (), DW_AT_comp_dir) == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment