diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-27 07:32:26 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-27 07:32:26 +0000 |
commit | ffc8e524d5eaf4f1410f8097a713823c33ac77e6 (patch) | |
tree | f9b695c3f67dfcff98a1d75be3d18fdbb7cd6b9e /gcc/c-gimplify.c | |
parent | 89640de28631707c0d9ea142b0145a4a728747f6 (diff) | |
download | gcc-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-gimplify.c')
-rw-r--r-- | gcc/c-gimplify.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-gimplify.c b/gcc/c-gimplify.c index db6cd88fd9b..058487404f3 100644 --- a/gcc/c-gimplify.c +++ b/gcc/c-gimplify.c @@ -454,12 +454,12 @@ gimplify_switch_stmt (tree *stmt_p) break_block = begin_bc_block (bc_break); - body = SWITCH_BODY (stmt); + body = SWITCH_STMT_BODY (stmt); if (!body) body = build_empty_stmt (); - *stmt_p = build3 (SWITCH_EXPR, SWITCH_TYPE (stmt), SWITCH_COND (stmt), - body, NULL_TREE); + *stmt_p = build3 (SWITCH_EXPR, SWITCH_STMT_TYPE (stmt), + SWITCH_STMT_COND (stmt), body, NULL_TREE); SET_EXPR_LOCATION (*stmt_p, stmt_locus); gimplify_stmt (stmt_p); |