dwarf2out.c (early_dwarf_finished): New global.
authorRichard Biener <rguenther@suse.de>
Mon, 19 Sep 2016 07:20:16 +0000 (07:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 19 Sep 2016 07:20:16 +0000 (07:20 +0000)
commit321e76fbf83720a7d88948d3e157ea9097e099ad
treeb2a2ed3d1067076874c7b9afa52e6cdfe3344e21
parentae5276392fb59dbdec56dd8cc6cc8253d9334c8b
dwarf2out.c (early_dwarf_finished): New global.

2016-09-16  Richard Biener  <rguenther@suse.de>

* dwarf2out.c (early_dwarf_finished): New global.
(set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
is false.
(dwarf2out_early_finish): Set early_dwarf_finished at the end,
if called from LTO exit early.
(dwarf2out_late_global_decl): When being during the early
debug phase do not add locations but only const value attributes.
Adjust the way we generate early DIEs for LTO.

lto/
* lto.c (lto_main): Invoke early_finish debug hook.

From-SVN: r240228
gcc/ChangeLog
gcc/dwarf2out.c
gcc/lto/ChangeLog
gcc/lto/lto.c