summaryrefslogtreecommitdiff
path: root/gcc/c-dump.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-27 07:32:26 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-27 07:32:26 +0000
commitffc8e524d5eaf4f1410f8097a713823c33ac77e6 (patch)
treef9b695c3f67dfcff98a1d75be3d18fdbb7cd6b9e /gcc/c-dump.c
parent89640de28631707c0d9ea142b0145a4a728747f6 (diff)
downloadgcc-ffc8e524d5eaf4f1410f8097a713823c33ac77e6.tar.gz
* tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS): Add tree checks. * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE. (SWITCH_STMT_COND, SWITCH_STMT_BODY): New. * c-common.def (SWITCH_STMT): Update to match. * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor macros instead of SWITCH_EXPR ones. * c-dump.c (c_dump_tree): Likewise. * c-gimplify.c (gimplify_switch_stmt): Likewise. * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise. cp/ * decl.c (finish_case_label): Use SWITCH_STMT accessor macros instead of SWITCH_EXPR ones. * pt.c (tsubst_expr): Likewise. * semantics.c (begin_switch_stmt, finish_switch_cond, finish_switch_stmt): Likewise. doc/ * c-tree.texi (SWITCH_STMT): Update accessor macro names. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94315 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-dump.c')
-rw-r--r--gcc/c-dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-dump.c b/gcc/c-dump.c
index 006759f9fa2..ac7c5808946 100644
--- a/gcc/c-dump.c
+++ b/gcc/c-dump.c
@@ -80,8 +80,8 @@ c_dump_tree (void *dump_info, tree t)
case SWITCH_STMT:
dump_stmt (di, t);
- dump_child ("cond", SWITCH_COND (t));
- dump_child ("body", SWITCH_BODY (t));
+ dump_child ("cond", SWITCH_STMT_COND (t));
+ dump_child ("body", SWITCH_STMT_BODY (t));
break;
case WHILE_STMT: