]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa-visibility.c (function_and_variable_visibility): Remove temporary hack disabling...
authorJan Hubicka <hubicka@ucw.cz>
Wed, 9 Jul 2014 16:06:17 +0000 (18:06 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 9 Jul 2014 16:06:17 +0000 (16:06 +0000)
* ipa-visibility.c (function_and_variable_visibility): Remove
temporary hack disabling local aliases on AIX.

From-SVN: r212396

gcc/ChangeLog
gcc/ipa-visibility.c

index 0b94921a18449c69cb6afe4f0fcd095897a9cf04..1845144fe4a8d66e2068b8f6e5924ed618f85845 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-visibility.c (function_and_variable_visibility): Remove
+       temporary hack disabling local aliases on AIX.
+
 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
index 10a9ec98c746bddb1bf580251054f29c37b6cb37..e3ab005762c5ffdd8e1d1050d960f534339c1ca7 100644 (file)
@@ -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;