re PR ipa/61160 (wrong code with -O3 (or ICE: verify_cgraph_node failed: edge points...
commitd3fb5cf063a3f9d664d8b863070a1b7cabebba13
authorMartin Jambor <mjambor@suse.cz>
Tue, 3 Jun 2014 10:09:20 +0000 (3 12:09 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 3 Jun 2014 10:09:20 +0000 (3 12:09 +0200)
treea78c4de9c588e10535d66baa6ecd9479d38e2bfe
parente25d96321c1b09f4fc77e03bc2eceb1cb2f25f04
re PR ipa/61160 (wrong code with -O3 (or ICE: verify_cgraph_node failed: edge points to wrong declaration))

2014-06-03  Martin Jambor  <mjambor@suse.cz>

PR ipa/61160
* ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
thunks.

testsuite/
* g++.dg/ipa/pr61160-1.C: New test.

From-SVN: r211170
gcc/ChangeLog
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr61160-1.C [new file with mode: 0644]