]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cgraphunit.c
PR ipa/64896
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Feb 2015 20:47:20 +0000 (20:47 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Feb 2015 20:47:20 +0000 (20:47 +0000)
commit91df30af7b6d440fb7261dc9abd120119c1f49b3
tree33b02403ed135a9f640d6f193b2bca059259f232
parentee61ca2e4d7eba9f9d6e9b7599005921822f7bcf
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.

* g++.dg/ipa/pr64896.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220489 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr64896.C [new file with mode: 0644]