PATCH to avoid copying tail padding (was: GCC 3.2)

Jason Merrill jason@redhat.com
Fri Aug 2 04:58:00 GMT 2002


Here's the patch I'm applying to the trunk.  The patch for 3.2.1 will be a
bit different.

2002-08-02  Jason Merrill  <jason@redhat.com>

	* langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
	* langhooks.c (lhd_expr_size): Define default.
	* langhooks.h (struct lang_hooks): Add expr_size.
	* explow.c (expr_size): Call it.
	* expr.c (store_expr): Don't copy an expression of size zero.
	(expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
	to store.
	* Makefile.in (builtins.o): Depend on langhooks.h.
cp/
	* cp-lang.c (LANG_HOOKS_EXPR_SIZE): Define.
	(cp_expr_size): New fn.
	* call.c (build_over_call): Lose empty class hackery.
	(convert_arg_to_ellipsis): Promote non-POD warning to error.
	* typeck.c (build_modify_expr): Don't use save_expr on an lvalue.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 12512 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20020802/d11ccf70/attachment.bin>


More information about the Gcc mailing list