[Bug target/102349] [12 Regression] crash in rs6000_xcoff_encode_section_info since r12-446-g8b5b814d51ff73bc739c0c037ae18df07acf2d96

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 15 15:07:53 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102349

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
The following helps:

diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index b0ec8108007..89868c39e27 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -21728,7 +21728,7 @@ rs6000_xcoff_encode_section_info (tree decl, rtx rtl,
int first)
   if (decl
       && DECL_P (decl)
       && VAR_OR_FUNCTION_DECL_P (decl)
-      && symtab_node::get (decl)->alias == 0
+      && symtab_node::get_create (decl)->alias == 0
       && symname[strlen (symname) - 1] != ']')
     {
       const char *smclass = NULL;


More information about the Gcc-bugs mailing list