]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PR 77333] Fixup fntypes of gimple calls of clones
authorMartin Jambor <mjambor@suse.cz>
Tue, 11 Apr 2017 13:31:16 +0000 (15:31 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 11 Apr 2017 13:31:16 +0000 (15:31 +0200)
commit7900d26c81ee754896d97b47fc57e668680a7019
treea902b5a13933acbc44ea506be1437e18c9df711d
parent1276baf6484d43d71901041706735d81a1a9b53a
[PR 77333] Fixup fntypes of gimple calls of clones

2017-04-11  Martin Jambor  <mjambor@suse.cz>

Backport from mainline
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: r246839
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]