re PR ipa/64896 (ICE in get_address_mode, at rtlanal.c:5442)
authorJakub Jelinek <jakub@redhat.com>
Fri, 6 Feb 2015 20:47:20 +0000 (21:47 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 6 Feb 2015 20:47:20 +0000 (21:47 +0100)
commitbbd1bae29c33b55ac449730b3b9eaaa44de3f3e8
tree33b02403ed135a9f640d6f193b2bca059259f232
parent091790a7f083f246d6975b0d9bf4bd236ed106cd
re PR ipa/64896 (ICE in get_address_mode, at rtlanal.c:5442)

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.

From-SVN: r220489
gcc/ChangeLog
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr64896.C [new file with mode: 0644]