]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* c-dump.c (dequeue_and_dump): Dump function bodies.
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Nov 2000 04:50:53 +0000 (04:50 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Nov 2000 04:50:53 +0000 (04:50 +0000)
* 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

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

index 52dd9cefe969eb1dc77eaabb0be619f3457842e3..8c6ed0ea79ddc258b2117a368feaf7b6cf878827 100644 (file)
@@ -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.
index 30b0816fe7fcb7b641e0da148fdbae90f7f91f30..96a2548b5712ffc6224fdfeceb729d223a765e27 100644 (file)
@@ -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:
index 9d79a4cdd39195cc6339d07e4834bfae31ef2c65..f05fc60c4a789fc14c7949b2d36ba2b2ef46c97e 100644 (file)
@@ -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.
index 077b333135022fc405a73f0729fabe1ddb2a9c8e..9be8d88921f5312cab535b95dfaceeae9a69d53c 100644 (file)
@@ -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
        {