This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/64612] [5 Regression] profiledbootstrap failures


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 ();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]