aboutsummaryrefslogtreecommitdiff
path: root/gcc/symtab.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-08-11 10:14:54 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-08-11 08:14:54 +0000
commita8b522b483ebb8c972ecfde8779a7a6ec16aecd6 (patch)
tree9758313b56edfd190549a5e205c9576068fe786e /gcc/symtab.c
parent4c71a171edb5e21a89a08643abfe933a43bb5d6d (diff)
downloadgcc-a8b522b483ebb8c972ecfde8779a7a6ec16aecd6.zip
gcc-a8b522b483ebb8c972ecfde8779a7a6ec16aecd6.tar.gz
gcc-a8b522b483ebb8c972ecfde8779a7a6ec16aecd6.tar.bz2
Introduce TARGET_SUPPORTS_ALIASES
2017-08-11 Martin Liska <mliska@suse.cz> * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with TARGET_SUPPORTS_ALIASES. 2017-08-11 Martin Liska <mliska@suse.cz> * asan.c (asan_protect_global): Replace ASM_OUTPUT_DEF with TARGET_SUPPORTS_ALIASES. * cgraph.c (cgraph_node::create_same_body_alias): Likewise. * ipa-visibility.c (can_replace_by_local_alias): Likewise. (optimize_weakref): Likewise. * symtab.c (symtab_node::noninterposable_alias): Likewise. * varpool.c (varpool_node::create_extra_name_alias): Likewise. * defaults.h: Introduce TARGET_SUPPORTS_ALIASES. 2017-08-11 Martin Liska <mliska@suse.cz> * decl2.c (get_tls_init_fn): Replace ASM_OUTPUT_DEF with TARGET_SUPPORTS_ALIASES. (handle_tls_init): Likewise. (note_mangling_alias): Likewise. Remove ATTRIBUTE_UNUSED for both arguments. * optimize.c (can_alias_cdtor): Likewise. From-SVN: r251048
Diffstat (limited to 'gcc/symtab.c')
-rw-r--r--gcc/symtab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/symtab.c b/gcc/symtab.c
index 7e5eb7d..a507ace 100644
--- a/gcc/symtab.c
+++ b/gcc/symtab.c
@@ -1765,10 +1765,10 @@ symtab_node::noninterposable_alias (void)
(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
+ if (!TARGET_SUPPORTS_ALIASES)
+ return NULL;
/* Otherwise create a new one. */
new_decl = copy_node (node->decl);