From: mmitchel Date: Fri, 10 Nov 2000 04:50:53 +0000 (+0000) Subject: * c-dump.c (dequeue_and_dump): Dump function bodies. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b55ec8068bcf752af412649fd7579383eefe79a;p=thirdparty%2Fgcc.git * c-dump.c (dequeue_and_dump): Dump function bodies. * dump.c (cp_dump_tree): Don't dump function bodies here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37359 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 52dd9cefe969..8c6ed0ea79dd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2000-11-09 Mark Mitchell + * 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 30b0816fe7fc..96a2548b5712 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 9d79a4cdd391..f05fc60c4a78 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2000-11-09 Mark Mitchell + * 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 077b33313502..9be8d88921f5 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 {