cp-tree.h (AGGR_INIT_VIA_CTOR_P): New macro.

* cp-tree.h (AGGR_INIT_VIA_CTOR_P): New macro.
	* tree.c (build_cplus_new): Set it.
	* expr.c (cplus_expand_expr): Use it.
	* dump.c (deque_and_dump): Handle AGGR_INIT_EXPR.

From-SVN: r28916
This commit is contained in:
Mark Mitchell 1999-08-27 05:01:08 +00:00 committed by Mark Mitchell
parent e1376b008f
commit 49124a6e01
2 changed files with 13 additions and 2 deletions

View File

@ -1,9 +1,10 @@
1999-08-26 Mark Mitchell <mark@codesourcery.com>
* cp-tree.def (AGGR_INIT_VIA_CTOR_P): New macro.
* cp-tree.h (AGGR_INIT_VIA_CTOR_P): New macro.
* tree.c (build_cplus_new): Set it.
* expr.c (cplus_expand_expr): Use it.
* dump.c (deque_and_dump): Handle AGGR_INIT_EXPR.
* decl.c (store_parm_decls): Reset immediate_size_expand.
(finish_function): Likewise.

View File

@ -850,6 +850,16 @@ dequeue_and_dump (di)
}
break;
case AGGR_INIT_EXPR:
dump_int ("ctor", AGGR_INIT_VIA_CTOR_P (t));
if (dump_children_p)
{
dump_child ("fn", TREE_OPERAND (t, 0));
dump_child ("args", TREE_OPERAND (t, 1));
dump_child ("decl", TREE_OPERAND (t, 2));
}
break;
default:
/* There are no additional fields to print. */
break;