aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2005-04-05 01:15:08 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2005-04-05 01:15:08 +0000
commit604f5adf98a598801856cbf365c6136f6eee7464 (patch)
treee8cc833b96138da1ed3358debbb13d1387a3ce64 /gcc/c-common.h
parentbfcf81bf390640642434733e4bd9f16a1d374724 (diff)
downloadgcc-604f5adf98a598801856cbf365c6136f6eee7464.zip
gcc-604f5adf98a598801856cbf365c6136f6eee7464.tar.gz
gcc-604f5adf98a598801856cbf365c6136f6eee7464.tar.bz2
c-typeck.c (struct c_switch): Rename switch_stmt field to switch_expr.
* 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. From-SVN: r97593
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 7794ade..f313e68 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);