cp-tree.h (AGGR_INIT_VIA_CTOR_P): New macro.
authorMark Mitchell <mark@codesourcery.com>
Fri, 27 Aug 1999 05:01:08 +0000 (05:01 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 27 Aug 1999 05:01:08 +0000 (05:01 +0000)
* 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

gcc/cp/ChangeLog
gcc/cp/dump.c

index 521710c31e9e4baa637321887fdbc7ecd156e6d7..f0e5c58e0ef64ea1b2edb1562438bdadd0a9e847 100644 (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.
        
index f42474b563c7ef1123b7127dc1c1f36936c81e4f..24d6bfae0c69eb296ed5d4fde37eede204292395 100644 (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;