2016-09-16 Richard Biener <rguenther@suse.de>
commit8ee8fe70807e1f0c25037ec33cebc4a44d15ab94
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Sep 2016 07:20:16 +0000 (19 07:20 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Sep 2016 07:20:16 +0000 (19 07:20 +0000)
treeb2a2ed3d1067076874c7b9afa52e6cdfe3344e21
parent281da9a3c20ffdceec683a9054233158a6b9542a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240228 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/lto/ChangeLog
gcc/lto/lto.c