* ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
authorJan Hubicka <jh@suse.cz>
Fri, 14 May 2010 20:38:43 +0000 (22:38 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 14 May 2010 20:38:43 +0000 (20:38 +0000)
From-SVN: r159413

gcc/ChangeLog
gcc/ipa.c

index a0df089891ee9b29ffab5a7fb2ddaba823d79b09..17de8d11ccbdccf4e75e2900d3fb2782934e4f6a 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-14  Jan Hubicka  <jh@suse.cz>
+
+       * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
+
 2010-05-14  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/44119
index 1a1aad74928c17fc813ac518bece0d3dc4b9a7c4..93e83ced36ee2080bb5d7b2f749b55def1a528b3 100644 (file)
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -320,21 +320,6 @@ cgraph_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
          first_varpool = (struct varpool_node *)first_varpool->aux;
          vnode->aux = NULL;
          process_references (&vnode->ref_list, &first, &first_varpool, before_inlining_p);
-         /* If any function in a comdat group is reachable, force
-            all other functions in the same comdat group to be
-            also reachable.  */
-         if (vnode->same_comdat_group)
-           {
-             struct varpool_node *next;
-             for (next = vnode->same_comdat_group;
-                  next != vnode;
-                  next = next->same_comdat_group)
-               if (!next->needed)
-                 {
-                   varpool_mark_needed_node (next);
-                   enqueue_varpool_node (next, &first_varpool);
-                 }
-           }
        }
     }