From 9e14e18fd124e651f079728315e40a16288863b6 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 16 Jun 2004 11:21:20 -0700 Subject: c-common.def (GOTO_STMT, LABEL_STMT): Remove. * c-common.def (GOTO_STMT, LABEL_STMT): Remove. * c-common.c (c_add_case_label): Use LABEL_EXPR. * c-common.h (GOTO_FAKE_P, LABEL_STMT_LABEL): Remove. (c_common_stmt_codes): Remove GOTO_STMT, LABEL_STMT. * c-dump.c (c_dump_tree): Likewise. * c-gimplify.c (c_gimplify_stmt): Likewise. * c-pretty-print.c (pp_c_statement): Likewise. * c-parse.in (stmt): Use GOTO_EXPR. (label): Use LABEL_EXPR. * c-semantics.c (build_stmt): Set TREE_TYPE to void. * tree-inline.c (copy_body_r): Don't build empty BLOCKs. cp/ * decl.c (finish_destructor_body): Use LABEL_EXPR. * parser.c (cp_parser_statement): Update commentary. * pt.c (tsubst_expr): Use LABEL_EXPR, GOTO_EXPR. * semantics.c (finish_goto_stmt, finish_label_stmt): Likewise. * tree.c (mark_local_for_remap_r): Likewise. From-SVN: r83255 --- gcc/c-parse.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/c-parse.in') diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 7589e73..147dbc0 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -2292,7 +2292,7 @@ stmt: if (decl != 0) { TREE_USED (decl) = 1; - $$ = add_stmt (build_stmt (GOTO_STMT, decl)); + $$ = add_stmt (build_stmt (GOTO_EXPR, decl)); } else $$ = NULL_TREE; @@ -2302,7 +2302,7 @@ stmt: pedwarn ("ISO C forbids `goto *expr;'"); stmt_count++; $3 = convert (ptr_type_node, $3); - $$ = add_stmt (build_stmt (GOTO_STMT, $3)); } + $$ = add_stmt (build_stmt (GOTO_EXPR, $3)); } | ';' { $$ = NULL_TREE; } @@ifobjc @@ -2379,7 +2379,7 @@ label: CASE expr_no_commas ':' if (label) { decl_attributes (&label, $4, 0); - $$ = add_stmt (build_stmt (LABEL_STMT, label)); + $$ = add_stmt (build_stmt (LABEL_EXPR, label)); } else $$ = NULL_TREE; -- cgit v1.1