summaryrefslogtreecommitdiff
path: root/gcc/symtab.c
diff options
context:
space:
mode:
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 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);