dwarf2out.c: fix jit issue with early_dwarf_finished
commite625ae7ab2349143fc16330b0bd3890bc55d9ca0
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Dec 2016 21:56:09 +0000 (1 21:56 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Dec 2016 21:56:09 +0000 (1 21:56 +0000)
treebbaace8711d718f52504f9fc7cdea7c97b2c618b
parentf04a998d5d2779da23952081c0f747d81d6c97f4
dwarf2out.c: fix jit issue with early_dwarf_finished

All of the jit testcases that generate debuginfo appear to have been
failing since r240228 on their 2nd in-process iteration on this
assertion in set_early_dwarf's ctor:

      gcc_assert (! early_dwarf_finished);

Root cause is that the global is never reset at the end of compilation,
which this patch fixes in the obvious way.

gcc/ChangeLog:
* dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
early_dwarf_finished.

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