https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77333
--- Comment #25 from Martin Jambor <jamborm at gcc dot gnu.org> --- Author: jamborm Date: Tue Apr 11 13:31:16 2017 New Revision: 246839 URL: https://gcc.gnu.org/viewcvs?rev=246839&root=gcc&view=rev Log: [PR 77333] Fixup fntypes of gimple calls of clones 2017-04-11 Martin Jambor <mjam...@suse.cz> Backport from mainline 2017-03-30 Martin Jambor <mjam...@suse.cz> PR ipa/77333 * cgraph.h (cgraph_build_function_type_skip_args): Declare. * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that it reflects the signature changes performed at the callee side. * cgraphclones.c (build_function_type_skip_args): Make public, renamed to cgraph_build_function_type_skip_args. (build_function_decl_skip_args): Adjust call to the above function. testsuite/ * g++.dg/ipa/pr77333.C: New test. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/ipa/pr77333.C Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/cgraph.c branches/gcc-5-branch/gcc/cgraph.h branches/gcc-5-branch/gcc/cgraphclones.c branches/gcc-5-branch/gcc/testsuite/ChangeLog