PR ipa/64896 74/64174/5 accepted/tizen/base/20160408.190334 submit/tizen_base/20160401.062552
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Feb 2015 20:47:20 +0000 (20:47 +0000)
committerDongkyun, Son <dongkyun.s@samsung.com>
Thu, 31 Mar 2016 00:55:15 +0000 (09:55 +0900)
commit9587dbfdfb7ac52f4f052ed2529b7ffa7b71287f
treee41de0e3f422851c7ddb6d9509d307a61c90094f
parent7fab370d68eaac6ad1ad6d379ec34cedfd8a6b4a
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.

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