re PR ipa/87706 (Inlined functions trigger invalid -Wmissing-profile warning)
authorJan Hubicka <hubicka@gcc.gnu.org>
Tue, 20 Nov 2018 15:58:37 +0000 (15:58 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 20 Nov 2018 15:58:37 +0000 (15:58 +0000)
commit84bfc7328990c247d74c6f6fde4320d11d4403db
tree69740ab1f47fd858805ac9243a27b5948cc3c07b
parent0b6808320905d6249e65267870b4a0cc0b0f678f
re PR ipa/87706 (Inlined functions trigger invalid -Wmissing-profile warning)

PR ipa/87706
* ipa-fnsummary.c (pass_ipa_fnsummary): Do not remove functions
* ipa.c (possible_inline_candidate_p): Break out from ..
(process_references): ... here ; drop before_inlining_p;
cleanup handling of alises.
(walk_polymorphic_call_targets): Likewise.
(symbol_table::remove_unreachable_nodes): Likewise.
* passes.c (pass_data_ipa_remove_symbols): New structure.
(pass_ipa_remove_symbols): New pass.
(make_pass_ipa_remove_symbols): New function.
* tree-pass.h (make_pass_ipa_remove_symbols): Declare.
* passes.def (pass_ipa_remove_symbols): Schedule after early passes.

From-SVN: r266320
gcc/tree-pass.h