From daf6dff5ac4c34fd82b7f72f6f40de906e8cdb24 Mon Sep 17 00:00:00 2001 From: rth Date: Wed, 16 Jun 2004 18:21:20 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83255 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/semantics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/cp/semantics.c') diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index ef82cb1bcb8..1b4f4677016 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -435,7 +435,7 @@ finish_goto_stmt (tree destination) check_goto (destination); - return add_stmt (build_stmt (GOTO_STMT, destination)); + return add_stmt (build_stmt (GOTO_EXPR, destination)); } /* COND is the condition-expression for an if, while, etc., @@ -1086,7 +1086,7 @@ tree finish_label_stmt (tree name) { tree decl = define_label (input_location, name); - return add_stmt (build_stmt (LABEL_STMT, decl)); + return add_stmt (build_stmt (LABEL_EXPR, decl)); } /* Finish a series of declarations for local labels. G++ allows users -- cgit v1.2.1