summaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-06-20 03:10:02 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-06-20 03:10:02 -0700
commit543a0daa84fd7dda27536a892dd88896ba25b1f3 (patch)
tree3b1f57793fdac8988d25b629b21ba09e5cade391 /gcc/c-parse.in
parentaa33d725018cde8ab90b73e355114343be9072ce (diff)
downloadgcc-543a0daa84fd7dda27536a892dd88896ba25b1f3.tar.gz
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-parse.in')
-rw-r--r--gcc/c-parse.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index d3e39af6858..02625a535bd 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -1540,7 +1540,7 @@ nested_function:
add_stmt ($6);
finish_function ();
pop_function_context ();
- add_decl_stmt (decl); }
+ add_stmt (build_stmt (DECL_STMT, decl)); }
;
notype_nested_function:
@@ -1570,7 +1570,7 @@ notype_nested_function:
add_stmt ($6);
finish_function ();
pop_function_context ();
- add_decl_stmt (decl); }
+ add_stmt (build_stmt (DECL_STMT, decl)); }
;
/* Any kind of declarator (thus, all declarators allowed
@@ -2019,7 +2019,7 @@ label_decl:
{
tree label = declare_label (TREE_VALUE (link));
C_DECLARED_LABEL_FLAG (label) = 1;
- add_decl_stmt (label);
+ add_stmt (build_stmt (DECL_STMT, label));
}
}
;