aboutsummaryrefslogtreecommitdiff
path: root/gcc/varpool.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/varpool.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/varpool.c')
-rw-r--r--gcc/varpool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c
index b005f52..d849fe8 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -788,10 +788,10 @@ varpool_node::create_extra_name_alias (tree alias, tree decl)
{
varpool_node *alias_node;
-#ifndef ASM_OUTPUT_DEF
/* If aliases aren't supported by the assembler, fail. */
- return NULL;
-#endif
+ if (!TARGET_SUPPORTS_ALIASES)
+ return NULL;
+
alias_node = varpool_node::create_alias (alias, decl);
alias_node->cpp_implicit_alias = true;