summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-02-27 15:49:19 +0000
committerTom Tromey <tromey@gcc.gnu.org>2008-02-27 15:49:19 +0000
commita8bafc433ca3957e3388b51ad340c6dffdda68f5 (patch)
treec7d5b8592207313dbc275710296aa14c3a10106f /gcc
parentf35f8a60dfd6008200a4287e5d38962eb9549b21 (diff)
downloadgcc-a8bafc433ca3957e3388b51ad340c6dffdda68f5.tar.gz
tree-dump.c (dequeue_and_dump): Check DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
* tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body. From-SVN: r132722
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-dump.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2ba91ba2863..4eb013e2f4b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c
index 6af106af934..a377deb959f 100644
--- a/gcc/tree-dump.c
+++ b/gcc/tree-dump.c
@@ -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;