aboutsummaryrefslogtreecommitdiff
path: root/gcc/symtab.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@gcc.gnu.org>2013-09-17 16:07:21 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2013-09-17 16:07:21 +0000
commitcdb87c08f66da0d5b6ae8ee9b3d2f917813a3cf1 (patch)
tree7ddfe37221825996123ef400802a41d132947f3f /gcc/symtab.c
parent5b79657a115e3b62fc860ad88238e9ab0b0f6395 (diff)
downloadgcc-cdb87c08f66da0d5b6ae8ee9b3d2f917813a3cf1.zip
gcc-cdb87c08f66da0d5b6ae8ee9b3d2f917813a3cf1.tar.gz
gcc-cdb87c08f66da0d5b6ae8ee9b3d2f917813a3cf1.tar.bz2
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
Diffstat (limited to 'gcc/symtab.c')
-rw-r--r--gcc/symtab.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/symtab.c b/gcc/symtab.c
index 8dc61d0..62fe166 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);