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

--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Author: jamborm
Date: Mon Nov 25 10:13:08 2019
New Revision: 278670

URL: https://gcc.gnu.org/viewcvs?rev=278670&root=gcc&view=rev
Log:
ipa: Prevent materialization of clones with removed bodies (PR 92109)

2019-11-25  Martin Jambor  <mjam...@suse.cz>

        PR ipa/92109
        * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
        * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
        (cgraph_materialize_clone): Move removel from clone tree to the
        the new method and use it instead.
        * ipa.c (symbol_table::remove_unreachable_nodes): When removing
        bodies of clones, also remove it from the clone tree.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraph.h
    trunk/gcc/cgraphclones.c
    trunk/gcc/ipa.c

Reply via email to