From: Richard Biener Date: Fri, 30 Jan 2026 13:55:58 +0000 (+0100) Subject: debug/123886 - remove GTY((skip)) from external_die_map entry X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b44a1ab15cfd0936860bbb78ece649e9b5ca0a0;p=thirdparty%2Fgcc.git debug/123886 - remove GTY((skip)) from external_die_map entry The following avoids GCing IDENTIFIER_POINTERs referenced from external_die_map after we clear ggc_protect_identifiers. I never expected those to be GCed. PR debug/123886 * dwarf2out.cc (sym_off_pair::sym): Remove GTY((skip)). --- diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc index 1ad944fc1d0..31ff7ff1905 100644 --- a/gcc/dwarf2out.cc +++ b/gcc/dwarf2out.cc @@ -5969,7 +5969,7 @@ equate_type_number_to_die (tree type, dw_die_ref type_die) static dw_die_ref maybe_create_die_with_external_ref (tree); struct GTY(()) sym_off_pair { - const char * GTY((skip)) sym; + const char *sym; unsigned HOST_WIDE_INT off; }; static GTY(()) hash_map *external_die_map;