https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64896
--- Comment #11 from Yvan Roux <yroux at gcc dot gnu.org> --- Author: yroux Date: Tue Mar 10 19:20:30 2015 New Revision: 221333 URL: https://gcc.gnu.org/viewcvs?rev=221333&root=gcc&view=rev Log: gcc/ 2015-03-10 Yvan Roux <yvan.r...@linaro.org> Backport from trunk r220489. 2015-02-06 Jakub Jelinek <ja...@redhat.com> PR ipa/64896 * cgraphunit.c (cgraph_node::expand_thunk): If restype is not is_gimple_reg_type nor the thunk_fndecl returns aggregate_value_p, set restmp to a temporary variable instead of resdecl. gcc/testsuite/ 2015-03-10 Yvan Roux <yvan.r...@linaro.org> Backport from trunk r220489. 2015-02-06 Jakub Jelinek <ja...@redhat.com> PR ipa/64896 * g++.dg/ipa/pr64896.C: New test. Added: branches/gcc-4_9-branch/gcc/testsuite/g++.dg/ipa/pr64896.C Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/cgraphunit.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog