Commit 8ccc8042 by Jan Hubicka Committed by Jan Hubicka

re PR bootstrap/64612 (profiledbootstrap failures)


	PR ipa/64612
	* ipa-inline-transform.c (can_remove_node_now_p): Fix handling
	of comdat locals.
	(inline_call): Fix removal of aliases.

From-SVN: r219696
parent 35228ac7
2015-01-15 Jan Hubicka <hubicka@ucw.cz>
PR ipa/64612
* ipa-inline-transform.c (can_remove_node_now_p): Fix handling
of comdat locals.
(inline_call): Fix removal of aliases.
2015-01-15 Jakub Jelinek <jakub@redhat.com> 2015-01-15 Jakub Jelinek <jakub@redhat.com>
* flag-types.h (enum sanitize_code): Add SANITIZE_VPTR, * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
......
...@@ -139,7 +139,7 @@ can_remove_node_now_p (struct cgraph_node *node, struct cgraph_edge *e) ...@@ -139,7 +139,7 @@ can_remove_node_now_p (struct cgraph_node *node, struct cgraph_edge *e)
/* When we see same comdat group, we need to be sure that all /* When we see same comdat group, we need to be sure that all
items can be removed. */ items can be removed. */
if (!node->same_comdat_group) if (!node->same_comdat_group || !node->externally_visible)
return true; return true;
for (next = dyn_cast<cgraph_node *> (node->same_comdat_group); for (next = dyn_cast<cgraph_node *> (node->same_comdat_group);
next != node; next = dyn_cast<cgraph_node *> (next->same_comdat_group)) next != node; next = dyn_cast<cgraph_node *> (next->same_comdat_group))
...@@ -310,7 +310,8 @@ inline_call (struct cgraph_edge *e, bool update_original, ...@@ -310,7 +310,8 @@ inline_call (struct cgraph_edge *e, bool update_original,
while (alias && alias != callee) while (alias && alias != callee)
{ {
if (!alias->callers if (!alias->callers
&& can_remove_node_now_p (alias, e)) && can_remove_node_now_p (alias,
!e->next_caller && !e->prev_caller ? e : NULL))
{ {
next_alias = alias->get_alias_target (); next_alias = alias->get_alias_target ();
alias->remove (); alias->remove ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment