aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-09-09 21:49:02 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-09-09 21:49:02 +0000
commit8a79e5cb72647db7aacbb5d1eae29162ccee8549 (patch)
tree4c2494cc5208f502fa52b3756b497ee31ede2275
parentc27db0df86846d46159245fc1036a386f87cf39e (diff)
downloadgcc-8a79e5cb72647db7aacbb5d1eae29162ccee8549.zip
gcc-8a79e5cb72647db7aacbb5d1eae29162ccee8549.tar.gz
gcc-8a79e5cb72647db7aacbb5d1eae29162ccee8549.tar.bz2
dump.c (dequeue_and_dump): Dump types for constants.
* dump.c (dequeue_and_dump): Dump types for constants. Describe DECL_ARG_TYPE more intuitively. Handle ARRAY_REF. From-SVN: r29245
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/dump.c9
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 0fa9272..399a3d4 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,9 @@
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
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c
index 1241d41..ec46272 100644
--- a/gcc/cp/dump.c
+++ b/gcc/cp/dump.c
@@ -443,6 +443,9 @@ dequeue_and_dump (di)
/* 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)
@@ -583,7 +586,10 @@ dequeue_and_dump (di)
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));
@@ -817,6 +823,7 @@ dequeue_and_dump (di)
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)
{