diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2005-01-27 07:32:26 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2005-01-27 07:32:26 +0000 |
commit | ebaae5827a4c70e7d8866c3aceeae6888e29d9fe (patch) | |
tree | f9b695c3f67dfcff98a1d75be3d18fdbb7cd6b9e /gcc/c-typeck.c | |
parent | 7a7067386511a18792d556ed3e174f0245a5a36a (diff) | |
download | gcc-ebaae5827a4c70e7d8866c3aceeae6888e29d9fe.zip gcc-ebaae5827a4c70e7d8866c3aceeae6888e29d9fe.tar.gz gcc-ebaae5827a4c70e7d8866c3aceeae6888e29d9fe.tar.bz2 |
tree.h (SWITCH_COND, [...]): Add tree checks.
* 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.
From-SVN: r94315
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r-- | gcc/c-typeck.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 237afad..cb657df 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -6563,8 +6563,7 @@ c_start_case (tree exp) /* Add this new SWITCH_STMT to the stack. */ cs = XNEW (struct c_switch); - cs->switch_stmt = build_stmt ((enum tree_code) SWITCH_STMT, exp, NULL_TREE, - orig_type); + cs->switch_stmt = build_stmt (SWITCH_STMT, exp, NULL_TREE, orig_type); cs->orig_type = orig_type; cs->cases = splay_tree_new (case_compare, NULL, NULL); cs->next = c_switch_stack; @@ -6583,7 +6582,7 @@ do_case (tree low_value, tree high_value) if (c_switch_stack) { label = c_add_case_label (c_switch_stack->cases, - SWITCH_COND (c_switch_stack->switch_stmt), + SWITCH_STMT_COND (c_switch_stack->switch_stmt), c_switch_stack->orig_type, low_value, high_value); if (label == error_mark_node) @@ -6604,7 +6603,7 @@ c_finish_case (tree body) { struct c_switch *cs = c_switch_stack; - SWITCH_BODY (cs->switch_stmt) = body; + SWITCH_STMT_BODY (cs->switch_stmt) = body; /* Emit warnings as needed. */ c_do_switch_warnings (cs->cases, cs->switch_stmt); |