aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-10-07 03:34:58 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-10-07 03:34:58 +0000
commit56934d5c71573a16adf4a78afa16a0e27bfa5668 (patch)
treea8df802bed81f00dad9d63b0c6e73d4d87209d0c /gcc/cp
parentf2646bf2fa8bec231b43a27498c50bd822519fe9 (diff)
downloadgcc-56934d5c71573a16adf4a78afa16a0e27bfa5668.zip
gcc-56934d5c71573a16adf4a78afa16a0e27bfa5668.tar.gz
gcc-56934d5c71573a16adf4a78afa16a0e27bfa5668.tar.bz2
* dump.c (dequeue_and_dump): Dump all three operands to a COND_EXPR.
From-SVN: r29849
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/dump.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 3321923..0a64b4d 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,7 @@
1999-10-06 Mark Mitchell <mark@codesourcery.com>
+ * dump.c (dequeue_and_dump): Dump all three operands to a COND_EXPR.
+
* cp-tree.h (CLASSTYPE_VFIELD): Remove.
* call.c (build_vfield_ref): Use TYPE_VFIELD, not
CLASSTYPE_VFIELD.
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c
index dc767bc..b38961e 100644
--- a/gcc/cp/dump.c
+++ b/gcc/cp/dump.c
@@ -783,13 +783,18 @@ dequeue_and_dump (di)
case MODIFY_EXPR:
case COMPONENT_REF:
case COMPOUND_EXPR:
- case COND_EXPR:
case ARRAY_REF:
/* These nodes are binary, but do not have code class `2'. */
dump_child ("op 0", TREE_OPERAND (t, 0));
dump_child ("op 1", TREE_OPERAND (t, 1));
break;
+ case COND_EXPR:
+ dump_child ("op 0", TREE_OPERAND (t, 0));
+ dump_child ("op 1", TREE_OPERAND (t, 1));
+ dump_child ("op 2", TREE_OPERAND (t, 2));
+ break;
+
case CALL_EXPR:
dump_child ("fn", TREE_OPERAND (t, 0));
dump_child ("args", TREE_OPERAND (t, 1));