diff options
author | Richard Henderson <rth@redhat.com> | 2004-06-16 13:51:46 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-06-16 13:51:46 -0700 |
commit | 8c16199578ee7b0bcc94a807373569055678d042 (patch) | |
tree | 7b0b73a938871fa1fd05c489701fd9f585e29abb /gcc/c-common.c | |
parent | e130a54b78b1f9b096a5ab1b98debfb263e16663 (diff) | |
download | gcc-8c16199578ee7b0bcc94a807373569055678d042.zip gcc-8c16199578ee7b0bcc94a807373569055678d042.tar.gz gcc-8c16199578ee7b0bcc94a807373569055678d042.tar.bz2 |
c-common.def (CASE_LABEL): Remove.
* 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.
From-SVN: r83261
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 3de00cf..6ef83f0 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 |