diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-01-16 00:11:49 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-01-15 23:11:49 +0000 |
commit | 8ccc8042d3bef13bfae6eb83b45b0a4231035f7c (patch) | |
tree | df9ba8db4868601b0b12435b80330e835d70ed19 /gcc/ipa-inline-transform.c | |
parent | 35228ac722036d6e33867d309b5bd837db4a354a (diff) | |
download | gcc-8ccc8042d3bef13bfae6eb83b45b0a4231035f7c.zip gcc-8ccc8042d3bef13bfae6eb83b45b0a4231035f7c.tar.gz gcc-8ccc8042d3bef13bfae6eb83b45b0a4231035f7c.tar.bz2 |
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
Diffstat (limited to 'gcc/ipa-inline-transform.c')
-rw-r--r-- | gcc/ipa-inline-transform.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ipa-inline-transform.c b/gcc/ipa-inline-transform.c index 7e5eda9..1c4b23a 100644 --- a/gcc/ipa-inline-transform.c +++ b/gcc/ipa-inline-transform.c @@ -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 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,7 +310,8 @@ inline_call (struct cgraph_edge *e, bool update_original, 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 (); |