This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PR debug/87295] ICE in dwarf2out
- From: Nathan Sidwell <nathan at acm dot org>
- To: Richard Biener <richard dot guenther at gmail dot com>, Jan Hubicka <hubicka at ucw dot cz>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 13 Sep 2018 11:21:56 -0400
- Subject: [PR debug/87295] ICE in dwarf2out
Richard, Jan, as early debug experts perhaps you can clue me in?
87295 is an ICE in lookup_external_ref, we strcmp a NULL
die->die_id.die_symbol.
The die is being cloned in clone_as_declaration during a
copy_ancestor_tree walk ultimately coming from
copy_decls_for_unworthy_types.
The incoming die is DW_TAG_structure_type with comdat_type_p set. We
create a new_die_raw, which has NULL die_id.die_symbol and then never
set that field (or another piece of the die_id union).
How is this supposed to work?
nathan
--
Nathan Sidwell