Reorganize cgraph_node::clone_of_p
authorMartin Jambor <mjambor@suse.cz>
Mon, 15 Apr 2019 08:30:36 +0000 (10:30 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 15 Apr 2019 08:30:36 +0000 (10:30 +0200)
commit79a18702006d53bc378affcd5dd6c8df7883b58f
tree85c9a79521fa8c8bcfe5fbf2005d6f2993a4e3fe
parent887e182f05d64c0cb2a888711d8d6ca1174fe93a
Reorganize cgraph_node::clone_of_p

2019-04-15  Martin Jambor  <mjambor@suse.cz>

PR ipa/pr89693
* cgraph.c (clone_of_p): Loop over clone chain for each step in
the thunk chain.

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

From-SVN: r270364
gcc/ChangeLog
gcc/cgraph.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr89693.C [new file with mode: 0644]