aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-visibility.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-07-09 18:06:17 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2014-07-09 16:06:17 +0000
commitef68f4ab659a4c5c7307fd98122e72a8363e9baa (patch)
treeda272c79d3896c175fbe0806e4570caa91e0d913 /gcc/ipa-visibility.c
parent8ad274d2c28e6687804dfb7f0a529a54a896da00 (diff)
downloadgcc-ef68f4ab659a4c5c7307fd98122e72a8363e9baa.zip
gcc-ef68f4ab659a4c5c7307fd98122e72a8363e9baa.tar.gz
gcc-ef68f4ab659a4c5c7307fd98122e72a8363e9baa.tar.bz2
ipa-visibility.c (function_and_variable_visibility): Remove temporary hack disabling local aliases on AIX.
* ipa-visibility.c (function_and_variable_visibility): Remove temporary hack disabling local aliases on AIX. From-SVN: r212396
Diffstat (limited to 'gcc/ipa-visibility.c')
-rw-r--r--gcc/ipa-visibility.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c
index 10a9ec9..e3ab005 100644
--- a/gcc/ipa-visibility.c
+++ b/gcc/ipa-visibility.c
@@ -567,9 +567,6 @@ function_and_variable_visibility (bool whole_program)
TODO: We can also update virtual tables. */
if (node->callers
- /* FIXME: currently this optimization breaks on AIX. Disable it for targets
- without comdat support for now. */
- && SUPPORTS_ONE_ONLY
&& can_replace_by_local_alias (node))
{
struct cgraph_node *alias = cgraph (symtab_nonoverwritable_alias (node));
@@ -672,10 +669,7 @@ function_and_variable_visibility (bool whole_program)
/* Update virtual tables to point to local aliases where possible. */
if (DECL_VIRTUAL_P (vnode->decl)
- && !DECL_EXTERNAL (vnode->decl)
- /* FIXME: currently this optimization breaks on AIX. Disable it for targets
- without comdat support for now. */
- && SUPPORTS_ONE_ONLY)
+ && !DECL_EXTERNAL (vnode->decl))
{
int i;
struct ipa_ref *ref;