https://gcc.gnu.org/g:2b44a1ab15cfd0936860bbb78ece649e9b5ca0a0
commit r16-7197-g2b44a1ab15cfd0936860bbb78ece649e9b5ca0a0 Author: Richard Biener <[email protected]> Date: Fri Jan 30 14:55:58 2026 +0100 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: --- gcc/dwarf2out.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc index 1ad944fc1d00..31ff7ff1905f 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<tree, sym_off_pair> *external_die_map;
