aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-dump.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3fd5e67..9e309ca4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-09 Diego Novillo <dnovillo@redhat.com>
+
+ * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
+ one operand.
+
2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
* toplev.h (warning_with_file_and_line): Don't declare.
diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c
index 4e36060..b48f60b 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, 1));
+ dump_child ("elts", TREE_OPERAND (t, 0));
break;
case BIND_EXPR: