diff options
author | Benjamin Chelf <chelf@codesourcery.com> | 2000-07-10 10:56:23 +0000 |
---|---|---|
committer | Ben Chelf <chelf@gcc.gnu.org> | 2000-07-10 03:56:23 -0700 |
commit | 0dfdeca6e06b76d99dfb3150f36c4dd2a501058c (patch) | |
tree | 8641e231837656bb79d18970254d75daaf2bb9f9 /gcc/cp/optimize.c | |
parent | f12eef581848449cc0099e63b8e2e20f8979e191 (diff) | |
download | gcc-0dfdeca6e06b76d99dfb3150f36c4dd2a501058c.zip gcc-0dfdeca6e06b76d99dfb3150f36c4dd2a501058c.tar.gz gcc-0dfdeca6e06b76d99dfb3150f36c4dd2a501058c.tar.bz2 |
c-common.h (build_stmt): Declare.
2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
* c-common.h (build_stmt): Declare.
(build_continue_stmt): Likewise.
(build_break_stmt): Likewise.
(build_return_stmt): Likewise.
* c-decl.c (do_case): Rewrite to do what previously done in
c-parse.in.
* c-semantics.c (build_stmt): Define.
(build_return_stmt): Likewise.
(build_break_stmt): Likewise.
(build_continue_stmt): Likewise.
(build_case_label): Likewise.
* c-parse.in (BREAK): Change to build tree, then generate RTL.
(CONTINUE): Likewise.
(RETURN): Likewise.
(CASE): Likewise.
(DEFAULT): Likewise.
* c-parse.y: Regenerate.
* c-pasre.c: Likewise.
* cp/semantics.c (finish_for_stmt): Remove call to emit_line_note.
(finish_continue_stmt): Likewise.
(begin_for_stmt): Remove call to note_level_for_for.
(finish_goto_stmt): Change call from build_min_nt
to build_stmt.
(finish_expr_stmt): Likewise.
(begin_if_stmt): Likewise.
(begin_while_stmt): Likewise.
(finish_while_stmt): Likewise.
(finish_return_stmt): Likewise.
(begin_for_stmt): Likewise.
(finish_for_stmt): Likewise.
(finish_break_stmt): Likewise.
(begin_switch_stmt): Likewise.
(finish_case_label): Likewise.
(genrtl_try_block): Likewise.
(begin_try_block): Likewise.
(begin_handler): Likewise.
(begin_compound_stmt): Likewise.
(finish_asm_stmt): Likewise.
(finish_label_stmt): Likewise.
(add_decl_stmt): Likewise.
(finish_subobject): Likewise.
(finish_decl_cleanup): Likewise.
(finish_named_return_value): Likewise.
(setup_vtbl_ptr): Likewise.
(add_scope_stmt): Likewise.
* cp/decl.c (finish_constructor_body): Likewise.
(finish_destructor_body): Likewise.
* cp/optimize.c (copy_body_r): Likewise.
(initialize_inlined_parameters): Likewise.
(declare_return_variable): Likewise.
(expand_call_inline): Likewise.
From-SVN: r34943
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r-- | gcc/cp/optimize.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index 0234734..1f87c9c 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -279,7 +279,7 @@ copy_body_r (tp, walk_subtrees, data) tree goto_stmt; /* Build the GOTO_STMT. */ - goto_stmt = build_min_nt (GOTO_STMT, id->ret_label); + goto_stmt = build_stmt (GOTO_STMT, id->ret_label); TREE_CHAIN (goto_stmt) = TREE_CHAIN (return_stmt); /* If we're returning something, just turn that into an @@ -287,8 +287,8 @@ copy_body_r (tp, walk_subtrees, data) RESULT_DECL. */ if (RETURN_EXPR (return_stmt)) { - *tp = build_min_nt (EXPR_STMT, - RETURN_EXPR (return_stmt)); + *tp = build_stmt (EXPR_STMT, + RETURN_EXPR (return_stmt)); /* And then jump to the end of the function. */ TREE_CHAIN (*tp) = goto_stmt; } @@ -431,7 +431,7 @@ initialize_inlined_parameters (id, args, fn) (splay_tree_value) var); /* Declare this new variable. */ - init_stmt = build_min_nt (DECL_STMT, var); + init_stmt = build_stmt (DECL_STMT, var); TREE_CHAIN (init_stmt) = init_stmts; init_stmts = init_stmt; @@ -444,9 +444,9 @@ initialize_inlined_parameters (id, args, fn) DECL_INITIAL (var) = value; else { - init_stmt = build_min_nt (EXPR_STMT, - build (INIT_EXPR, TREE_TYPE (p), - var, value)); + init_stmt = build_stmt (EXPR_STMT, + build (INIT_EXPR, TREE_TYPE (p), + var, value)); /* Add this initialization to the list. Note that we want the declaration *after* the initialization because we are going to reverse all the initialization statements below. */ @@ -515,12 +515,12 @@ declare_return_variable (id, use_stmt) (splay_tree_value) var); /* Build the USE_STMT. */ - *use_stmt = build_min_nt (EXPR_STMT, var); + *use_stmt = build_stmt (EXPR_STMT, var); /* Build the declaration statement if FN does not return an aggregate. */ if (!aggregate_return_p) - return build_min_nt (DECL_STMT, var); + return build_stmt (DECL_STMT, var); /* If FN does return an aggregate, there's no need to declare the return variable; we're using a variable in our caller's frame. */ else @@ -704,7 +704,7 @@ expand_call_inline (tp, walk_subtrees, data) /* Create a block to put the parameters in. We have to do this after the parameters have been remapped because remapping parameters is different from remapping ordinary variables. */ - scope_stmt = build_min_nt (SCOPE_STMT, DECL_INITIAL (fn)); + scope_stmt = build_stmt (SCOPE_STMT, DECL_INITIAL (fn)); SCOPE_BEGIN_P (scope_stmt) = 1; SCOPE_NO_CLEANUPS_P (scope_stmt) = 1; remap_block (scope_stmt, DECL_ARGUMENTS (fn), id); @@ -729,7 +729,7 @@ expand_call_inline (tp, walk_subtrees, data) *inlined_body = copy_body (id); /* Close the block for the parameters. */ - scope_stmt = build_min_nt (SCOPE_STMT, DECL_INITIAL (fn)); + scope_stmt = build_stmt (SCOPE_STMT, DECL_INITIAL (fn)); SCOPE_NO_CLEANUPS_P (scope_stmt) = 1; my_friendly_assert (DECL_INITIAL (fn) && TREE_CODE (DECL_INITIAL (fn)) == BLOCK, @@ -743,7 +743,7 @@ expand_call_inline (tp, walk_subtrees, data) may cause RTL to be generated. */ STMT_EXPR_STMT (expr) = chainon (STMT_EXPR_STMT (expr), - build_min_nt (LABEL_STMT, id->ret_label)); + build_stmt (LABEL_STMT, id->ret_label)); /* Finally, mention the returned value so that the value of the statement-expression is the returned value of the function. */ |