1999-09-09 Mark Mitchell <mark@codesourcery.com>
+ * dump.c (dequeue_and_dump): Dump types for constants.
+ Describe DECL_ARG_TYPE more intuitively.
+ Handle ARRAY_REF.
+
* decl.c (lang_mark_tree): Mark TYPE_LANG_SPECIFIC.
(lang_cleanup_tree): Remove.
* lex.c (make_lang_type): Use ggc_alloc to allocate
/* All types have alignments. */
dump_int (di, "algn", TYPE_ALIGN (t));
}
+ else if (code_class == 'c' && dump_children_p)
+ /* All constants can have types. */
+ queue_and_dump_type (di, t, 1);
/* Now handle the various kinds of nodes. */
switch (code)
case FIELD_DECL:
if (dump_children_p)
{
- dump_child ("init", DECL_INITIAL (t));
+ if (TREE_CODE (t) == PARM_DECL)
+ dump_child ("argt", DECL_ARG_TYPE (t));
+ else
+ dump_child ("init", DECL_INITIAL (t));
dump_child ("size", DECL_SIZE (t));
}
dump_int (di, "algn", DECL_ALIGN (t));
case COMPONENT_REF:
case COMPOUND_EXPR:
case COND_EXPR:
+ case ARRAY_REF:
/* These nodes are binary, but do not have code class `2'. */
if (dump_children_p)
{