https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63587
--- Comment #16 from Yvan Roux <yroux at gcc dot gnu.org> --- Author: yroux Date: Mon Mar 23 09:50:33 2015 New Revision: 221589 URL: https://gcc.gnu.org/viewcvs?rev=221589&root=gcc&view=rev Log: gcc/ 2015-03-23 Yvan Roux <yvan.r...@linaro.org> Backport from trunk r216841. 2014-10-29 Martin Liska <mli...@suse.cz> PR ipa/63587 * 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. gcc/testsuite/ 2015-03-23 Yvan Roux <yvan.r...@linaro.org> Backport from trunk r216841. 2014-10-29 Martin Liska <mli...@suse.cz> PR ipa/63587 * g++.dg/ipa/pr63587-1.C: New test. * g++.dg/ipa/pr63587-2.C: New test. Added: branches/gcc-4_9-branch/gcc/testsuite/g++.dg/ipa/pr63587-1.C branches/gcc-4_9-branch/gcc/testsuite/g++.dg/ipa/pr63587-2.C Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/cgraphunit.c branches/gcc-4_9-branch/gcc/function.c branches/gcc-4_9-branch/gcc/function.h branches/gcc-4_9-branch/gcc/testsuite/ChangeLog