aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2016-12-01 21:56:09 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2016-12-01 21:56:09 +0000
commit859faa171ebabdddf364564acad99750cf2b6f56 (patch)
treebbaace8711d718f52504f9fc7cdea7c97b2c618b /gcc
parentf99bd883fb0d051ff2d7cebe217f2d2a8ad16bfd (diff)
downloadgcc-859faa171ebabdddf364564acad99750cf2b6f56.zip
gcc-859faa171ebabdddf364564acad99750cf2b6f56.tar.gz
gcc-859faa171ebabdddf364564acad99750cf2b6f56.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5a55f42..b23481f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-01 David Malcolm <dmalcolm@redhat.com>
+
+ * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
+ early_dwarf_finished.
+
2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
David S. Miller <davem@davemloft.net>
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index bc328ab..8dc8523 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -29830,6 +29830,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;