https://gcc.gnu.org/g:49b60a20de51bd0a0b0ba745f2f1ccf2e5970dfb

commit r14-12449-g49b60a20de51bd0a0b0ba745f2f1ccf2e5970dfb
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)).
    
    (cherry picked from commit 2b44a1ab15cfd0936860bbb78ece649e9b5ca0a0)

Diff:
---
 gcc/dwarf2out.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc
index 146328a1bcaf..81fefa1bf73a 100644
--- a/gcc/dwarf2out.cc
+++ b/gcc/dwarf2out.cc
@@ -5959,7 +5959,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;

Reply via email to