https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66616
--- Comment #10 from Martin Jambor <jamborm at gcc dot gnu.org> --- Author: jamborm Date: Mon Dec 14 16:31:26 2015 New Revision: 231622 URL: https://gcc.gnu.org/viewcvs?rev=231622&root=gcc&view=rev Log: [PR 66616] Check for thunks when adding extra constants to clones 2015-12-14 Martin Jambor <mjam...@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. testsuite/ * g++.dg/ipa/pr66616.C: New test. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/ipa/pr66616.C Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/ipa-cp.c branches/gcc-5-branch/gcc/testsuite/ChangeLog