From: Martin Liska Date: Wed, 15 Sep 2021 15:19:58 +0000 (+0200) Subject: rs6000: fix symtab_node::get == NULL issue X-Git-Tag: basepoints/gcc-13~4762 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=adddfc85c07143f7c8097a90a83bfb15b8bd52e8;p=thirdparty%2Fgcc.git rs6000: fix symtab_node::get == NULL issue PR target/102349 gcc/ChangeLog: * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info): Check that we have a symbol summary for a symbol. --- diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index b0ec8108007e..d0830a95027e 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -21728,6 +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) != NULL && symtab_node::get (decl)->alias == 0 && symname[strlen (symname) - 1] != ']') {