diff options
author | Diego Novillo <dnovillo@redhat.com> | 2003-05-09 15:37:08 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2003-05-09 11:37:08 -0400 |
commit | 5675294bcbd17311491358f8dc299deeeb11d2c5 (patch) | |
tree | 17518ae84702dc1d230d57d6d0ee7db9eec3b865 | |
parent | 88e98cfeb7a9d048923a59132053082699dec968 (diff) | |
download | gcc-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/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree-dump.c | 2 |
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: |