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/decl.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/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index b09dab3..1f49ae63 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -14097,7 +14097,7 @@ finish_constructor_body () { /* Any return from a constructor will end up here. */ if (ctor_label) - add_tree (build_min_nt (LABEL_STMT, ctor_label)); + add_tree (build_stmt (LABEL_STMT, ctor_label)); /* Clear CTOR_LABEL so that finish_return_stmt knows to really generate the return, rather than a goto to CTOR_LABEL. */ @@ -14106,7 +14106,7 @@ finish_constructor_body () constructor to a return of `this'. */ finish_return_stmt (NULL_TREE); /* Mark the end of the constructor. */ - add_tree (build_min_nt (CTOR_STMT)); + add_tree (build_stmt (CTOR_STMT)); } /* At the end of every destructor we generate code to restore virtual @@ -14125,7 +14125,7 @@ finish_destructor_body () compound_stmt = begin_compound_stmt (/*has_no_scope=*/0); /* Any return from a destructor will end up here. */ - add_tree (build_min_nt (LABEL_STMT, dtor_label)); + add_tree (build_stmt (LABEL_STMT, dtor_label)); /* Generate the code to call destructor on base class. If this destructor belongs to a class with virtual functions, then set |