summaryrefslogtreecommitdiff
path: root/gcc/ipa-visibility.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-09 16:06:17 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-09 16:06:17 +0000
commit248339148d6c2ccc5bdfa60e289954c950faa740 (patch)
treeda272c79d3896c175fbe0806e4570caa91e0d913 /gcc/ipa-visibility.c
parentf28422b679fc0745d3a7abffdad3f1fa2f5e6621 (diff)
downloadgcc-248339148d6c2ccc5bdfa60e289954c950faa740.tar.gz
* ipa-visibility.c (function_and_variable_visibility): Remove
temporary hack disabling local aliases on AIX. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212396 138bc75d-0d04-0410-961f-82ee72b054a4
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 10a9ec98c74..e3ab005762c 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;