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

--- Comment #7 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Author: jamborm
Date: Fri Mar  8 22:55:20 2019
New Revision: 269517

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

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

        Backport from mainline
        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:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/ipa/pr88235.C
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/cgraph.c
    branches/gcc-8-branch/gcc/cgraph.h
    branches/gcc-8-branch/gcc/testsuite/ChangeLog

Reply via email to