cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite for correct comdat...
authorJan Hubicka <hubicka@ucw.cz>
Wed, 4 Mar 2015 20:28:08 +0000 (21:28 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 4 Mar 2015 20:28:08 +0000 (20:28 +0000)
commita6a543bfa860d89ca4fb5734233ede5796b10103
tree2724c9b62285c2c1dc7ecae0dea0d9cc465c8847
parentd720e658eba57e78e8493d9126921bd4f07130b0
cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite for correct comdat handling.

* cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
for correct comdat handling.
(cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
Likewise.
* cgraph.h (call_for_symbol_and_aliases): Fix formating.
(used_from_object_file_p_worker): Remove.
(cgraph_node::only_called_directly_or_alised): Add
used_from_object_file_p.
* ipa-inline-analysis.c (growth_likely_positive): Optimie.
* ipa-inline-transform.c (can_remove_node_now_p_1): Use
can_remove_if_no_direct_calls_and_refs_p.

From-SVN: r221193
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/ipa-inline-analysis.c
gcc/ipa-inline-transform.c