diff options
author | Richard Henderson <rth@redhat.com> | 2004-06-20 03:10:02 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-06-20 03:10:02 -0700 |
commit | 543a0daa84fd7dda27536a892dd88896ba25b1f3 (patch) | |
tree | 3b1f57793fdac8988d25b629b21ba09e5cade391 /gcc/c-semantics.c | |
parent | aa33d725018cde8ab90b73e355114343be9072ce (diff) | |
download | gcc-543a0daa84fd7dda27536a892dd88896ba25b1f3.zip gcc-543a0daa84fd7dda27536a892dd88896ba25b1f3.tar.gz gcc-543a0daa84fd7dda27536a892dd88896ba25b1f3.tar.bz2 |
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
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index ba4e90b..bda5161 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -145,19 +145,6 @@ add_stmt (tree t) return t; } -/* Create a declaration statement for the declaration given by the - DECL. */ - -void -add_decl_stmt (tree decl) -{ - tree decl_stmt; - - /* We need the type to last until instantiation time. */ - decl_stmt = build_stmt (DECL_STMT, decl); - add_stmt (decl_stmt); -} - /* Build a generic statement based on the given type of node and arguments. Similar to `build_nt', except that we set EXPR_LOCUS to be the current source location. */ |