re PR ipa/61160 (wrong code with -O3 (or ICE: verify_cgraph_node failed: edge points...
authorMartin Jambor <mjambor@suse.cz>
Fri, 27 Jun 2014 13:29:09 +0000 (15:29 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 27 Jun 2014 13:29:09 +0000 (15:29 +0200)
commitd284e1b86aa99cdf480905c58cf8975b1ae1e295
treec0bd394c08c89edcf557da88c5a1221a5d610703
parentf012c1abe0935f4136352b7e5fbb862179be42ed
re PR ipa/61160 (wrong code with -O3 (or ICE: verify_cgraph_node failed: edge points to wrong declaration))

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

PR ipa/61160
* cgraphclones.c (duplicate_thunk_for_node): Removed parameter
args_to_skip, use those from node instead.  Copy args_to_skip and
combined_args_to_skip from node to the new thunk.
(redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
(cgraph_create_virtual_clone): Moved computation of
combined_args_to_skip...
(cgraph_clone_node): ...here, simplify it to bitmap_ior..

testsuite/
* g++.dg/ipa/pr61160-2.C: New test.
* g++.dg/ipa/pr61160-3.C: Likewise.

From-SVN: r212071
gcc/ChangeLog
gcc/cgraphclones.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr61160-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ipa/pr61160-3.C [new file with mode: 0644]