summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/c-dump.c2
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/dump.c2
4 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 52dd9cefe96..8c6ed0ea79d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2000-11-09 Mark Mitchell <mark@codesourcery.com>
+ * c-dump.c (dequeue_and_dump): Dump function bodies.
+
* Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
(c-dump.o): New target.
* c-common.h (flag_dump_translation_unit): New variable.
diff --git a/gcc/c-dump.c b/gcc/c-dump.c
index 30b0816fe7f..96a2548b571 100644
--- a/gcc/c-dump.c
+++ b/gcc/c-dump.c
@@ -504,6 +504,8 @@ dequeue_and_dump (di)
dump_string (di, "extern");
else
dump_string (di, "static");
+ if (DECL_LANG_SPECIFIC (t))
+ dump_child ("body", DECL_SAVED_TREE (t));
break;
case ASM_STMT:
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 9d79a4cdd39..f05fc60c4a7 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,7 @@
2000-11-09 Mark Mitchell <mark@codesourcery.com>
+ * dump.c (cp_dump_tree): Don't dump function bodies here.
+
* Make-lang.in (CXX_C_OBJS): Add c-dump.o.
(dump.o): Update dependency list.
* cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c
index 077b3331350..9be8d88921f 100644
--- a/gcc/cp/dump.c
+++ b/gcc/cp/dump.c
@@ -107,8 +107,6 @@ cp_dump_tree (di, t)
}
if (DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION (t))
dump_string (di, "pseudo tmpl");
-
- dump_child ("body", DECL_SAVED_TREE (t));
}
else
{