tree-dump.c (dequeue_and_dump): Check DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when...
authorTom Tromey <tromey@redhat.com>
Wed, 27 Feb 2008 15:49:19 +0000 (15:49 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 27 Feb 2008 15:49:19 +0000 (15:49 +0000)
* tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.

From-SVN: r132722

gcc/ChangeLog
gcc/tree-dump.c

index 2ba91ba2863d01835624669804b52471dd72183e..4eb013e2f4bcae65c241d81a871e46ea60701d75 100644 (file)
@@ -1,3 +1,8 @@
+2008-02-27  Tom Tromey  <tromey@redhat.com>
+
+       * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
+       DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
+
 2008-02-27  Jan Beulich  <jbeulich@novell.com>
 
        * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
index 6af106af9342ac281477fefec67f68ecd066638c..a377deb959f778e5746292230faed042c055dc75 100644 (file)
@@ -1,5 +1,5 @@
 /* Tree-dumping functionality for intermediate representation.
-   Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007
+   Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008
    Free Software Foundation, Inc.
    Written by Mark Mitchell <mark@codesourcery.com>
 
@@ -550,7 +550,7 @@ dequeue_and_dump (dump_info_p di)
        dump_string_field (di, "link", "extern");
       else
        dump_string_field (di, "link", "static");
-      if (DECL_LANG_SPECIFIC (t) && !dump_flag (di, TDF_SLIM, t))
+      if (DECL_SAVED_TREE (t) && !dump_flag (di, TDF_SLIM, t))
        dump_child ("body", DECL_SAVED_TREE (t));
       break;