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-common.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-common.c')
-rw-r--r-- | gcc/c-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index af1d828..1df71ad 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -3676,7 +3676,7 @@ c_do_switch_warnings (splay_tree cases, tree switch_stmt) else switch_location = input_location; - type = SWITCH_TYPE (switch_stmt); + type = SWITCH_STMT_TYPE (switch_stmt); default_node = splay_tree_lookup (cases, (splay_tree_key) NULL); if (warn_switch_default && !default_node) @@ -3688,7 +3688,7 @@ c_do_switch_warnings (splay_tree cases, tree switch_stmt) default case, or when -Wswitch-enum was specified. */ if (((warn_switch && !default_node) || warn_switch_enum) && type && TREE_CODE (type) == ENUMERAL_TYPE - && TREE_CODE (SWITCH_COND (switch_stmt)) != INTEGER_CST) + && TREE_CODE (SWITCH_STMT_COND (switch_stmt)) != INTEGER_CST) { tree chain; |