dwarf2out.c: fix jit issue with early_dwarf_finished
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 1 Dec 2016 21:56:09 +0000 (21:56 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 1 Dec 2016 21:56:09 +0000 (21:56 +0000)
commit859faa171ebabdddf364564acad99750cf2b6f56
treebbaace8711d718f52504f9fc7cdea7c97b2c618b
parentf99bd883fb0d051ff2d7cebe217f2d2a8ad16bfd
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.

From-SVN: r243136
gcc/ChangeLog
gcc/dwarf2out.c