diff --git a/gcc/gcc/config/rs6000/rs6000.c b/gcc/gcc/config/rs6000/rs6000.c index de3d90a3e0..dd5f05f658 100644 --- a/gcc/gcc/config/rs6000/rs6000.c +++ b/gcc/gcc/config/rs6000/rs6000.c @@ -33791,7 +33791,8 @@ rs6000_xcoff_declare_object_name (FILE *file, const char *name, tree decl) struct declare_alias_data data = {file, false}; RS6000_OUTPUT_BASENAME (file, name); fputs (":\n", file); - symtab_node::get (decl)->call_for_symbol_and_aliases (rs6000_declare_alias, &data, true); + if(symtab_node::get (decl)) + symtab_node::get (decl)->call_for_symbol_and_aliases (rs6000_declare_alias, &data, true); } /* Overide the default 'SYMBOL-.' syntax with AIX compatible 'SYMBOL-$'. */