diff options
author | Martin Liska <mliska@suse.cz> | 2017-08-11 10:14:54 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-08-11 08:14:54 +0000 |
commit | a8b522b483ebb8c972ecfde8779a7a6ec16aecd6 (patch) | |
tree | 9758313b56edfd190549a5e205c9576068fe786e /gcc/asan.c | |
parent | 4c71a171edb5e21a89a08643abfe933a43bb5d6d (diff) | |
download | gcc-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/asan.c')
-rw-r--r-- | gcc/asan.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1665,10 +1665,8 @@ asan_protect_global (tree decl) if (lookup_attribute ("weakref", DECL_ATTRIBUTES (decl))) return false; -#ifndef ASM_OUTPUT_DEF - if (asan_needs_local_alias (decl)) + if (!TARGET_SUPPORTS_ALIASES && asan_needs_local_alias (decl)) return false; -#endif return true; } |