From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 5E0613858419; Wed, 15 Sep 2021 15:22:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E0613858419 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-3551] rs6000: fix symtab_node::get == NULL issue X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: a37d7d6fc1dbd9906bbb2c6bf5ba9d30fd17a584 X-Git-Newrev: adddfc85c07143f7c8097a90a83bfb15b8bd52e8 Message-Id: <20210915152205.5E0613858419@sourceware.org> Date: Wed, 15 Sep 2021 15:22:05 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2021 15:22:05 -0000 https://gcc.gnu.org/g:adddfc85c07143f7c8097a90a83bfb15b8bd52e8 commit r12-3551-gadddfc85c07143f7c8097a90a83bfb15b8bd52e8 Author: Martin Liska Date: Wed Sep 15 17:19:58 2021 +0200 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: --- gcc/config/rs6000/rs6000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index b0ec8108007..d0830a95027 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] != ']') {