https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66616
--- Comment #20 from Martin Jambor <jamborm at gcc dot gnu.org> --- Author: jamborm Date: Mon Jan 11 09:59:48 2016 New Revision: 232213 URL: https://gcc.gnu.org/viewcvs?rev=232213&root=gcc&view=rev Log: [PR 66616] Check for thunks when adding extra constants to clones 2016-01-11 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. * 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. Added: branches/gcc-4_9-branch/gcc/testsuite/g++.dg/ipa/pr66616.C Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/cgraphclones.c branches/gcc-4_9-branch/gcc/ipa-cp.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog