summaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-05 01:15:08 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-05 01:15:08 +0000
commit197638d4d29f0e9790fc7cb95648c25f7305bafa (patch)
treee8cc833b96138da1ed3358debbb13d1387a3ce64 /gcc/c-common.h
parentcb618e11a759efa73d62cbbb782af550c039725d (diff)
downloadgcc-197638d4d29f0e9790fc7cb95648c25f7305bafa.tar.gz
* c-typeck.c (struct c_switch): Rename switch_stmt field to
switch_expr. (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT. (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND. (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY. Call c_do_switch_expr_warnings rather than c_do_switch_warnings. * c-common.c (c_do_switch_warnings_1): New static function broken out of c_do_switch_warnings. (c_do_switch_warnings): Call c_do_switch_warnings_1. (c_do_switch_expr_warnings): New function. * c-common.h (c_do_switch_expr_warnings): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97593 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 7794adedbeb..f313e6883ca 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -825,6 +825,7 @@ extern int case_compare (splay_tree_key, splay_tree_key);
extern tree c_add_case_label (splay_tree, tree, tree, tree, tree);
extern void c_do_switch_warnings (splay_tree, tree);
+extern void c_do_switch_expr_warnings (splay_tree, tree);
extern tree build_function_call (tree, tree);