This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/64612] [5 Regression] profiledbootstrap failures
- From: "hubicka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Jan 2015 21:37:31 +0000
- Subject: [Bug bootstrap/64612] [5 Regression] profiledbootstrap failures
- Auto-submitted: auto-generated
- References: <bug-64612-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64612
--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Oops, wrong if
Index: ipa-inline-transform.c
===================================================================
--- ipa-inline-transform.c (revision 219674)
+++ ipa-inline-transform.c (working copy)
@@ -139,7 +139,7 @@ can_remove_node_now_p (struct cgraph_nod
/* When we see same comdat group, we need to be sure that all
items can be removed. */
- if (!node->same_comdat_group)
+ if (!node->same_comdat_group || !node->externally_visible)
return true;
for (next = dyn_cast<cgraph_node *> (node->same_comdat_group);
next != node; next = dyn_cast<cgraph_node *> (next->same_comdat_group))
@@ -310,6 +310,7 @@ inline_call (struct cgraph_edge *e, bool
while (alias && alias != callee)
{
if (!alias->callers
+ && !e->next_caller && !e->prev_caller
&& can_remove_node_now_p (alias, e))
{
next_alias = alias->get_alias_target ();