]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
debug/123886 - remove GTY((skip)) from external_die_map entry
authorRichard Biener <rguenther@suse.de>
Fri, 30 Jan 2026 13:55:58 +0000 (14:55 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 30 Jan 2026 18:19:58 +0000 (19:19 +0100)
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)).

gcc/dwarf2out.cc

index 1ad944fc1d008e4887aa559c1c0951757e688664..31ff7ff1905f342085b2a3ec894789e6a196ddd1 100644 (file)
@@ -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;