Skip to content
Snippets Groups Projects
Commit adddfc85 authored by Martin Liska's avatar Martin Liska
Browse files

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.
parent a37d7d6f
No related branches found
No related tags found
No related merge requests found
...@@ -21728,6 +21728,7 @@ rs6000_xcoff_encode_section_info (tree decl, rtx rtl, int first) ...@@ -21728,6 +21728,7 @@ rs6000_xcoff_encode_section_info (tree decl, rtx rtl, int first)
if (decl if (decl
&& DECL_P (decl) && DECL_P (decl)
&& VAR_OR_FUNCTION_DECL_P (decl) && VAR_OR_FUNCTION_DECL_P (decl)
&& symtab_node::get (decl) != NULL
&& symtab_node::get (decl)->alias == 0 && symtab_node::get (decl)->alias == 0
&& symname[strlen (symname) - 1] != ']') && symname[strlen (symname) - 1] != ']')
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment