From 4bd132ffddd19c15c809fb7f42cb90b4650fe6fb Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 26 Jul 2003 19:10:26 +0000 Subject: * cp-tree.h (begin_init_stmts, finish_init_stmts): Remove. (begin_global_stmt_expr, finish_global_stmt_expr): Remove. * init.c (begin_init_stmts): Make static. Return is_global value. Always call begin_stmt_expr. (finish_init_stmts): Make static. Add is_global parm. Always building a stmt tree. (build_aggr_init): Adjust begin_init_stmts, finish_init_stmts calls. (build_vec_init): Likewise. Always building a stmt tree. (expand_default_init): Always building a stmt tree. (get_temp_regvar): Likewise. * semantics.c (begin_global_stmt_expr, finish_global_stmt_expr): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69830 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/semantics.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'gcc/cp/semantics.c') diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index da34da29333..1ce6bd33181 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -1425,35 +1425,6 @@ begin_stmt_expr (void) return last_tree; } -/* Used when beginning a statement-expression outside function scope. - For example, when handling a file-scope initializer, we use this - function. */ - -tree -begin_global_stmt_expr (void) -{ - if (! cfun && !last_tree) - begin_stmt_tree (&scope_chain->x_saved_tree); - - keep_next_level (1); - - return last_tree ? last_tree : expand_start_stmt_expr(/*has_scope=*/1); -} - -/* Finish the STMT_EXPR last begun with begin_global_stmt_expr. */ - -tree -finish_global_stmt_expr (tree stmt_expr) -{ - stmt_expr = expand_end_stmt_expr (stmt_expr); - - if (! cfun - && TREE_CHAIN (scope_chain->x_saved_tree) == NULL_TREE) - finish_stmt_tree (&scope_chain->x_saved_tree); - - return stmt_expr; -} - /* Finish a statement-expression. RTL_EXPR should be the value returned by the previous begin_stmt_expr; EXPR is the statement-expression. Returns an expression representing the -- cgit v1.2.1