diff mbox

AIX xcoff declare object name

Message ID CAGWvnym2EQp5ywjG82E8UarUXvH0CQr+iRQ6vY+2jDYK-szi+g@mail.gmail.com
State New
Headers show

Commit Message

David Edelsohn Nov. 3, 2016, 12:29 p.m. UTC
During Richi's debugging of the section type conflict, he found a
problem with rs6000_xcoff_declare_object_name trying to access a decl
that did not exist.  Fixed thusly.

* config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
symtab_node::get_create.

 /* Overide the default 'SYMBOL-.' syntax with AIX compatible 'SYMBOL-$'. */
diff mbox

Patch

Index: rs6000.c
===================================================================
--- rs6000.c    (revision 241814)
+++ rs6000.c    (working copy)
@@ -35414,8 +35414,8 @@  rs6000_xcoff_declare_object_name (FILE *file, cons
   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);
+  symtab_node::get_create (decl)->call_for_symbol_and_aliases
(rs6000_declare_alias,
+                                                              &data, true);
 }