c-common.h (add_decl_stmt): Move to cp-tree.h.
authorRichard Henderson <rth@redhat.com>
Sun, 20 Jun 2004 10:10:02 +0000 (03:10 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 20 Jun 2004 10:10:02 +0000 (03:10 -0700)
commit543a0daa84fd7dda27536a892dd88896ba25b1f3
tree3b1f57793fdac8988d25b629b21ba09e5cade391
parentaa33d725018cde8ab90b73e355114343be9072ce
c-common.h (add_decl_stmt): Move to cp-tree.h.

        * c-common.h (add_decl_stmt): Move to cp-tree.h.
        * c-decl.c (finish_decl): Don't use add_decl_stmt.
        * c-parse.in: Likewise.
        * c-gimplify.c (gimplify_expr_stmt): Don't build CLEANUP_POINT_EXPR.
        (gimplify_c_loop, gimplify_return_stmt, gimplify_decl_stmt): Likewise.
        * c-semantics.c (add_decl_stmt): Move to cp/semantics.c.
cp/
        * cp-tree.h (add_decl_stmt): Declare.
        * pt.c (tsubst_copy): Abort for CLEANUP_POINT_EXPR.
        * semantics.c (maybe_cleanup_point_expr): New.
        (add_decl_stmt, finish_expr_stmt, finish_return_stmt,
        finish_for_expr, finish_switch_cond): Use it.
        (finalize_nrv_r): Don't build an EXPR_STMT.  Don't frob TREE_CHAIN.

From-SVN: r83409
gcc/ChangeLog
gcc/c-common.h
gcc/c-decl.c
gcc/c-gimplify.c
gcc/c-parse.in
gcc/c-semantics.c
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/cp/semantics.c