This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix dumping of CONSTRUCTOR nodes [patch]


Installed as obvious on mainline and tree-ssa branch.

Diego.



	* tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
	one operand.

Index: tree-dump.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-dump.c,v
retrieving revision 1.10
diff -d -u -p -r1.10 tree-dump.c
--- tree-dump.c	20 Feb 2003 17:51:39 -0000	1.10
+++ tree-dump.c	9 May 2003 13:19:32 -0000
@@ -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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]