diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-16 20:51:46 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-16 20:51:46 +0000 |
commit | eaae3b7592d5ecb2b2d6def2f85573fe41bb71c5 (patch) | |
tree | 7b0b73a938871fa1fd05c489701fd9f585e29abb /gcc/c-common.c | |
parent | 226c2452e8d93ba717951c2a341671e05f2e0980 (diff) | |
download | gcc-eaae3b7592d5ecb2b2d6def2f85573fe41bb71c5.tar.gz |
* c-common.def (CASE_LABEL): Remove.
* c-common.c (c_add_case_label): Use CASE_LABEL, not CASE_LABEL_DECL.
(match_case_to_enum_1): Likewise.
* c-common.h (c_common_stmt_codes): Remove CASE_LABEL.
* c-dump.c (c_dump_tree): Likewise.
* c-gimplify.c (c_gimplify_stmt): Likewise.
* c-pretty-print.c (pp_c_statement): Likewise.
* c-semantics.c (build_case_label): Use CASE_LABEL_EXPR.
* tree.h (CASE_LOW): Update commentary.
cp/
* parser.c (cp_parser_labeled_statement): Update commentary.
* pt.c (tsubst_expr): Use CASE_LABEL_EXPR.
* tree.c (mark_local_for_remap_r): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83261 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 3de00cff869..6ef83f04640 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -3770,8 +3770,8 @@ case_compare (splay_tree_key k1, splay_tree_key k2) case label was declared using the usual C/C++ syntax, rather than the GNU case range extension. CASES is a tree containing all the case ranges processed so far; COND is the condition for the - switch-statement itself. Returns the CASE_LABEL created, or - ERROR_MARK_NODE if no CASE_LABEL is created. */ + switch-statement itself. Returns the CASE_LABEL_EXPR created, or + ERROR_MARK_NODE if no CASE_LABEL_EXPR is created. */ tree c_add_case_label (splay_tree cases, tree cond, tree low_value, @@ -3870,7 +3870,7 @@ c_add_case_label (splay_tree cases, tree cond, tree low_value, /* If there was an overlap, issue an error. */ if (node) { - tree duplicate = CASE_LABEL_DECL ((tree) node->value); + tree duplicate = CASE_LABEL ((tree) node->value); if (high_value) { @@ -3935,10 +3935,10 @@ match_case_to_enum_1 (tree key, tree type, tree label) if (TYPE_NAME (type) == 0) warning ("%Jcase value `%s' not in enumerated type", - CASE_LABEL_DECL (label), buf); + CASE_LABEL (label), buf); else warning ("%Jcase value `%s' not in enumerated type `%T'", - CASE_LABEL_DECL (label), buf, type); + CASE_LABEL (label), buf, type); } static int |