C++ PATCH to aggregate returns

Jason Merrill jason@redhat.com
Thu Aug 21 03:41:00 GMT 2003


This patch does three things:

1) breaks out most of simplify_aggr_init_exprs_r into a separate function.
2) corrects the type of the return slot argument so we don't need to adjust
   it in the inliner.
3) avoids clobbering the identity of a variable initialized by an inline
   function.

These are all primarily for the benefit of tree-ssa, but are also
applicable to the trunk.

Tested x86_64-pc-linux-gnu, applied to trunk and tree-ssa.

2003-08-20  Jason Merrill  <jason@redhat.com>

	* semantics.c (simplify_aggr_init_expr): Split out from
	simplify_aggr_init_exprs_r.  Convert slot address to match
	the return type.
	* cp-tree.h: Declare it.
	* tree.c (cp_copy_res_decl_for_inlining): Don't clobber the
	DECL_NAME of a user variable.

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


More information about the Gcc-patches mailing list