https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87706
--- Comment #10 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Author: hubicka Date: Tue Nov 20 15:58:37 2018 New Revision: 266320 URL: https://gcc.gnu.org/viewcvs?rev=266320&root=gcc&view=rev Log: 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. Modified: trunk/gcc/tree-pass.h