aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-08-27 05:01:08 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-08-27 05:01:08 +0000
commit49124a6e012b98c1c657bc263b5a7cd672bf4319 (patch)
tree8e23cb671fa9829531cf69fa15ddc33acdbe40cd /gcc
parente1376b008f646728e2639f795a8af63ac28c2480 (diff)
downloadgcc-49124a6e012b98c1c657bc263b5a7cd672bf4319.zip
gcc-49124a6e012b98c1c657bc263b5a7cd672bf4319.tar.gz
gcc-49124a6e012b98c1c657bc263b5a7cd672bf4319.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/dump.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 521710c..f0e5c58 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c
index f42474b..24d6bfa 100644
--- a/gcc/cp/dump.c
+++ b/gcc/cp/dump.c
@@ -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;