summaryrefslogtreecommitdiff
path: root/gcc/c-pretty-print.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-06-16 13:51:46 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-06-16 13:51:46 -0700
commit8c16199578ee7b0bcc94a807373569055678d042 (patch)
tree7b0b73a938871fa1fd05c489701fd9f585e29abb /gcc/c-pretty-print.c
parente130a54b78b1f9b096a5ab1b98debfb263e16663 (diff)
downloadgcc-8c16199578ee7b0bcc94a807373569055678d042.tar.gz
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-pretty-print.c')
-rw-r--r--gcc/c-pretty-print.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/c-pretty-print.c b/gcc/c-pretty-print.c
index e5eb8e3dbb0..a2ef2048874 100644
--- a/gcc/c-pretty-print.c
+++ b/gcc/c-pretty-print.c
@@ -1909,33 +1909,6 @@ pp_c_statement (c_pretty_printer *pp, tree stmt)
}
break;
- /* labeled-statement:
- identifier : statement
- case constant-expression : statement
- default : statement */
- case CASE_LABEL:
- if (pp_needs_newline (pp))
- pp_newline_and_indent (pp, -3);
- else
- pp_indentation (pp) -= 3;
- if (CASE_LOW (stmt) == NULL_TREE)
- pp_identifier (pp, "default");
- else
- {
- pp_c_identifier (pp, "case");
- pp_c_whitespace (pp);
- pp_conditional_expression (pp, CASE_LOW (stmt));
- if (CASE_HIGH (stmt))
- {
- pp_identifier (pp, "...");
- pp_conditional_expression (pp, CASE_HIGH (stmt));
- }
- }
- pp_colon (pp);
- pp_indentation (pp) += 3;
- pp_needs_newline (pp) = true;
- break;
-
/* compound-statement:
{ block-item-list(opt) }