* [committed] dwarf2out.c: fix jit issue with early_dwarf_finished
@ 2016-01-01 0:00 David Malcolm
0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2016-01-01 0:00 UTC (permalink / raw)
To: gcc-patches, jit; +Cc: David Malcolm
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.
Successfully bootstrapped®rtested on x86_64-pc-linux-gnu; fixes
55 FAILs in jit.sum.
Committed to trunk as r243136 (under the "obvious" rule).
gcc/ChangeLog:
* dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
early_dwarf_finished.
---
gcc/dwarf2out.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 66a4919..d87ba21 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -29829,6 +29829,9 @@ dwarf2out_c_finalize (void)
cold_text_section = NULL;
current_unit_personality = NULL;
+ early_dwarf = false;
+ early_dwarf_finished = false;
+
next_die_offset = 0;
single_comp_unit_die = NULL;
comdat_type_list = NULL;
--
1.8.5.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-12-01 21:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-01 0:00 [committed] dwarf2out.c: fix jit issue with early_dwarf_finished David Malcolm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).