https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83506

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Dec 20 19:41:38 2017
New Revision: 255901

URL: https://gcc.gnu.org/viewcvs?rev=255901&root=gcc&view=rev
Log:
        PR ipa/83506
        * ipa-fnsummary.c (pass_data_ipa_free_fn_summary): Use 0 for
        todo_flags_finish.
        (pass_ipa_free_fn_summary): Add small_p private data member,
        initialize to false in the ctor.
        (pass_ipa_free_fn_summary::clone,
        pass_ipa_free_fn_summary::set_pass_param,
        pass_ipa_free_fn_summary::gate): New methods.
        (pass_ipa_free_fn_summary::execute): Return TODO_remove_functions
        | TODO_dump_symtab if small_p.
        * passes.def: Add true parm for the existing pass_ipa_free_fn_summary
        entry and add another instance of the pass with false parm after
        ipa-pure-const.
        * ipa-pure-const.c (pass_ipa_pure_const): Don't call
        ipa_free_fn_summary here.

        * gcc.dg/pr83506.c: New test.
        * gcc.dg/ipa/ctor-empty-1.c: Use -fdump-ipa-free-fnsummary1 instead
        of -fdump-ipa-free-fnsummary and scan in free-fnsummary1 instead of
        free-fnsummary dump.

Added:
    trunk/gcc/testsuite/gcc.dg/pr83506.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-fnsummary.c
    trunk/gcc/ipa-pure-const.c
    trunk/gcc/passes.def
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/ipa/ctor-empty-1.c

Reply via email to