diff options
author | Ian Lance Taylor <ian@airs.com> | 2005-04-05 01:15:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2005-04-05 01:15:08 +0000 |
commit | 604f5adf98a598801856cbf365c6136f6eee7464 (patch) | |
tree | e8cc833b96138da1ed3358debbb13d1387a3ce64 /gcc/c-common.h | |
parent | bfcf81bf390640642434733e4bd9f16a1d374724 (diff) | |
download | gcc-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.h | 1 |
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); |