From cdb87c08f66da0d5b6ae8ee9b3d2f917813a3cf1 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 17 Sep 2013 16:07:21 +0000 Subject: [PATCH] re PR ipa/58329 (ld: Invalid symbol type for plabel (.libs/libstdc++.lax/libc++11convenience.a/system_error.o, std::error_category::default_error_condition(int) const [clone .localalias.9]).) 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/symtab.c b/gcc/symtab.c index 8dc61d0c7af..62fe166bd61 100644 --- a/gcc/symtab.c +++ b/gcc/symtab.c @@ -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); -- 2.30.2