]> git.ipfire.org Git - thirdparty/gcc.git/commit
Relax cgraph_node::clone_of_p to also look through former clones
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Mar 2019 16:03:34 +0000 (16:03 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Mar 2019 16:03:34 +0000 (16:03 +0000)
commite3e42b030c4725d55e7bfa21e4fadd6ce67e238f
treecdb71e52faf06fd59ef5c90c4cebf832ea238b09
parent4481f3d028156d34c3e3ec587feb2302b06b7db4
Relax cgraph_node::clone_of_p to also look through former clones

2019-03-07  Martin Jambor  <mjambor@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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269462 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr88235.C [new file with mode: 0644]