+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>
* flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
/* 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))
while (alias && alias != callee)
{
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 ();
alias->remove ();