diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2018-11-20 14:25:04 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2018-11-20 13:25:04 +0000 |
commit | 12485662c00914ed132d950f1329fdaf32c11a3c (patch) | |
tree | 915c311dd930a542e608132872f89e56f2d114e0 /gcc/ipa-fnsummary.c | |
parent | 8c944c97a2e5a264779ad1d448f97319f471275a (diff) | |
download | gcc-12485662c00914ed132d950f1329fdaf32c11a3c.zip gcc-12485662c00914ed132d950f1329fdaf32c11a3c.tar.gz gcc-12485662c00914ed132d950f1329fdaf32c11a3c.tar.bz2 |
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 functoin.
* passes.def (pass_ipa_remove_symbols): Schedule after early passes.
From-SVN: r266315
Diffstat (limited to 'gcc/ipa-fnsummary.c')
-rw-r--r-- | gcc/ipa-fnsummary.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 9cb7d41..23b7821 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -3563,10 +3563,7 @@ public: virtual unsigned int execute (function *) { ipa_free_fn_summary (); - /* Early optimizations may make function unreachable. We can not - remove unreachable functions as part of the early opts pass because - TODOs are run before subpasses. Do it here. */ - return small_p ? TODO_remove_functions | TODO_dump_symtab : 0; + return 0; } private: |