]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-typeck.c
c-typeck.c (struct c_switch): Rename switch_stmt field to switch_expr.
authorIan Lance Taylor <ian@airs.com>
Tue, 5 Apr 2005 01:15:08 +0000 (01:15 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 5 Apr 2005 01:15:08 +0000 (01:15 +0000)
commit604f5adf98a598801856cbf365c6136f6eee7464
treee8cc833b96138da1ed3358debbb13d1387a3ce64
parentbfcf81bf390640642434733e4bd9f16a1d374724
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
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-typeck.c