]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PR 66616] Check for thunks when adding extra constants to clones
authorMartin Jambor <mjambor@suse.cz>
Mon, 11 Jan 2016 09:59:48 +0000 (10:59 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 11 Jan 2016 09:59:48 +0000 (10:59 +0100)
commit9a1efe82e4729d7513cd458232a005a5a91212ad
tree37000749fc992985e6cfa2c0893aadde6b973318
parentb36fa68f2eec8a377d0e9001520b8e2a374920b5
[PR 66616] Check for thunks when adding extra constants to clones

2016-01-11  Martin Jambor  <mjambor@suse.cz>

PR ipa/66616
* ipa-cp.c (propagate_constants_accross_call): Move thuk check...
(call_passes_through_thunk_p): ...here.
(find_more_scalar_values_for_callers_subset): Perform thunk checks
like propagate_constants_accross_call does.
* cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
flag from the node to the new flag.

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

From-SVN: r232213
gcc/ChangeLog
gcc/cgraphclones.c
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr66616.C [new file with mode: 0644]