summaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-20 10:10:02 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-20 10:10:02 +0000
commit73d4090eb6c0a066cf54827b8264c447f8b31cc0 (patch)
tree3b1f57793fdac8988d25b629b21ba09e5cade391 /gcc/c-semantics.c
parent8d3eec31791596fd8799d29b3f1f093ee6b03397 (diff)
downloadgcc-73d4090eb6c0a066cf54827b8264c447f8b31cc0.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83409 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r--gcc/c-semantics.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index ba4e90b4911..bda5161bbe4 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. */