aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2003-05-09 15:37:08 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2003-05-09 11:37:08 -0400
commit5675294bcbd17311491358f8dc299deeeb11d2c5 (patch)
tree17518ae84702dc1d230d57d6d0ee7db9eec3b865
parent88e98cfeb7a9d048923a59132053082699dec968 (diff)
downloadgcc-5675294bcbd17311491358f8dc299deeeb11d2c5.zip
gcc-5675294bcbd17311491358f8dc299deeeb11d2c5.tar.gz
gcc-5675294bcbd17311491358f8dc299deeeb11d2c5.tar.bz2
tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS...
* tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS, instead of TREE_OPERAND to access the operand of a CONSTRUCTOR node. From-SVN: r66635
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-dump.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9e309ca4..0cdb291 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2003-05-09 Diego Novillo <dnovillo@redhat.com>
+ * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
+ instead of TREE_OPERAND to access the operand of a
+ CONSTRUCTOR node.
+
+2003-05-09 Diego Novillo <dnovillo@redhat.com>
+
* tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
one operand.
diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c
index b48f60b..b171abd 100644
--- a/gcc/tree-dump.c
+++ b/gcc/tree-dump.c
@@ -569,7 +569,7 @@ dequeue_and_dump (di)
break;
case CONSTRUCTOR:
- dump_child ("elts", TREE_OPERAND (t, 0));
+ dump_child ("elts", CONSTRUCTOR_ELTS (t));
break;
case BIND_EXPR: