]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR ipa/63587 (ICE : tree check: expected var_decl, have result_decl in add_local_v...
authorMartin Liska <mliska@suse.cz>
Wed, 29 Oct 2014 15:17:42 +0000 (16:17 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 29 Oct 2014 15:17:42 +0000 (15:17 +0000)
commit5cf18d250f37b6c86b26d17e0cbb22a0c0d18e03
tree987eee494277d54edfb3a37f24a7b598c944ae9e
parent7b310e901c5b7ad8ad54771b2d69459a496da472
re PR ipa/63587 (ICE : tree check: expected var_decl, have result_decl in add_local_variables, at tree-inline.c:4112)

PR ipa/63587

* g++.dg/ipa/pr63587-1.C: New test
* g++.dg/ipa/pr63587-2.C: New test.

* cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
to local declarations.
* function.c (add_local_decl): Implementation moved from header
file, assert introduced for tree type.
* function.h: Likewise.

From-SVN: r216841
gcc/ChangeLog
gcc/cgraphunit.c
gcc/function.c
gcc/function.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr63587-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ipa/pr63587-2.C [new file with mode: 0644]