Introduce TARGET_SUPPORTS_ALIASES
authorMartin Liska <mliska@suse.cz>
Fri, 11 Aug 2017 08:14:54 +0000 (10:14 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 11 Aug 2017 08:14:54 +0000 (08:14 +0000)
commita8b522b483ebb8c972ecfde8779a7a6ec16aecd6
tree9758313b56edfd190549a5e205c9576068fe786e
parent4c71a171edb5e21a89a08643abfe933a43bb5d6d
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
12 files changed:
gcc/ChangeLog
gcc/asan.c
gcc/c-family/ChangeLog
gcc/c-family/c-opts.c
gcc/cgraph.c
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/optimize.c
gcc/defaults.h
gcc/ipa-visibility.c
gcc/symtab.c
gcc/varpool.c