From ebaae5827a4c70e7d8866c3aceeae6888e29d9fe Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Thu, 27 Jan 2005 07:32:26 +0000 Subject: 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 --- gcc/doc/c-tree.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/doc/c-tree.texi') diff --git a/gcc/doc/c-tree.texi b/gcc/doc/c-tree.texi index 9f4e649..fd1a070 100644 --- a/gcc/doc/c-tree.texi +++ b/gcc/doc/c-tree.texi @@ -1573,11 +1573,11 @@ cleanups must be executed in the reverse order in which they appear. @item SWITCH_STMT -Used to represent a @code{switch} statement. The @code{SWITCH_COND} is -the expression on which the switch is occurring. See the documentation +Used to represent a @code{switch} statement. The @code{SWITCH_STMT_COND} +is the expression on which the switch is occurring. See the documentation for an @code{IF_STMT} for more information on the representation used -for the condition. The @code{SWITCH_BODY} is the body of the switch -statement. The @code{SWITCH_TYPE} is the original type of switch +for the condition. The @code{SWITCH_STMT_BODY} is the body of the switch +statement. The @code{SWITCH_STMT_TYPE} is the original type of switch expression as given in the source, before any compiler conversions. @item TRY_BLOCK -- cgit v1.1