]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR ipa/58329 (ld: Invalid symbol type for plabel (.libs/libstdc++.lax/libc++11conv...
authorJan Hubicka <hubicka@gcc.gnu.org>
Tue, 17 Sep 2013 16:07:21 +0000 (16:07 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 17 Sep 2013 16:07:21 +0000 (16:07 +0000)
PR middle-end/58329
* ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
to return NULL.
* ipa.c (function_and_variable_visibility): Likewise.
* ipa-profile.c (ipa_profile): Likewise.

From-SVN: r202658

gcc/symtab.c

index 8dc61d0c7af98bad8e234552b088d93b1fabc271..62fe166bd61a6dadba5f4dff0a635456a208bd9b 100644 (file)
@@ -1083,6 +1083,10 @@ symtab_nonoverwritable_alias (symtab_node node)
                               (void *)&new_node, true);
   if (new_node)
     return new_node;
+#ifndef ASM_OUTPUT_DEF
+  /* If aliases aren't supported by the assembler, fail.  */
+  return NULL;
+#endif
 
   /* Otherwise create a new one.  */
   new_decl = copy_node (node->symbol.decl);