[PR 77333] Fixup fntypes of gimple calls of clones
authorMartin Jambor <mjambor@suse.cz>
Thu, 30 Mar 2017 13:51:02 +0000 (15:51 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Thu, 30 Mar 2017 13:51:02 +0000 (15:51 +0200)
commitb0fd4d7e328f0b967d61fdfe44b5e01b26cf3c30
tree0d0aa00b6327fc3693098541fb8b4b3c966bfa64
parentde008ec4d69a5f7e9b75b25dc9e1fa937d65ff80
[PR 77333] Fixup fntypes of gimple calls of clones

2017-03-30  Martin Jambor  <mjambor@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.

From-SVN: r246589
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/cgraphclones.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr77333.C [new file with mode: 0644]