[Bug debug/86457] [8/9 Regression] ICE in add_dwarf_attr, at dwarf2out.c:4405 since r251448
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 10 12:43:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86457
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Target Milestone|--- |8.2
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Similar to what was fixed in r259317 -fdebug-types-section needs this as well.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index a7c4620cfc3..3563f3beb92 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -31120,9 +31120,9 @@ dwarf2out_finish (const char *)
if (*slot != HTAB_EMPTY_ENTRY)
continue;
- /* Add a pointer to the line table for the main compilation unit
- so that the debugger can make sense of DW_AT_decl_file
- attributes. */
+ /* Remove the pointer to the line table. */
+ remove_AT (ctnode->root_die, DW_AT_stmt_list);
+
if (debug_info_level >= DINFO_LEVEL_TERSE)
reset_dies (ctnode->root_die);
More information about the Gcc-bugs
mailing list