diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-26 19:10:26 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-26 19:10:26 +0000 |
commit | 4bd132ffddd19c15c809fb7f42cb90b4650fe6fb (patch) | |
tree | b5fef0e9e96ec251d4eacefa562073b7516cd36a /gcc/cp/semantics.c | |
parent | a844986ac000f75846c3574755a12d032770e23e (diff) | |
download | gcc-4bd132ffddd19c15c809fb7f42cb90b4650fe6fb.tar.gz |
* 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
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 29 |
1 files changed, 0 insertions, 29 deletions
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 |