[PATCH] Fix for PR63587

Martin Liška mliska@suse.cz
Wed Oct 29 14:25:00 GMT 2014


Hello.

Following patch fixes PR63587, where we put DECL_RESULT in cgraph_node::expand_thunk to local_decls.
Patch has been tested on x86_64-linux-pc without any regression and boostrap works correctly.

Ready for thunk?
Thanks,
Martin
-------------- next part --------------
gcc/testsuite/ChangeLog:

2014-10-29  Martin Liska  <mliska@suse.cz>

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


gcc/ChangeLog:

2014-10-29  Martin Liska  <mliska@suse.cz>

	* 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PR63587.patch
Type: text/x-patch
Size: 10118 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141029/e95f6516/attachment.bin>


More information about the Gcc-patches mailing list