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

--- Comment #6 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Author: jamborm
Date: Thu Mar  7 16:03:34 2019
New Revision: 269462

URL: https://gcc.gnu.org/viewcvs?rev=269462&root=gcc&view=rev
Log:
Relax cgraph_node::clone_of_p to also look through former clones

2019-03-07  Martin Jambor  <mjam...@suse.cz>

        PR ipa/88235
        * cgraph.h (cgraph_node): New inline method former_thunk_p.
        * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
        (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
        have multiple callees.  At the end check if declarations match as
        opposed to cgraph_nodes.

        testsuite/
        * g++.dg/ipa/pr88235.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/ipa/pr88235.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraph.c
    trunk/gcc/cgraph.h
    trunk/gcc/testsuite/ChangeLog

Reply via email to