From 73d4090eb6c0a066cf54827b8264c447f8b31cc0 Mon Sep 17 00:00:00 2001 From: rth Date: Sun, 20 Jun 2004 10:10:02 +0000 Subject: * 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 --- gcc/c-semantics.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'gcc/c-semantics.c') 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. */ -- cgit v1.2.1