diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-07 06:55:51 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-07 06:55:51 +0000 |
commit | 41fb2c183baec4e1959faca92a3e79916b1c5af8 (patch) | |
tree | 26b71c56ba6d8b613dd53a45e0c6e5aa848ee50d /gcc/c-common.h | |
parent | b83e87223f3b88c14509fdbf576d2fa737b13e2a (diff) | |
download | gcc-41fb2c183baec4e1959faca92a3e79916b1c5af8.tar.gz |
* c-common.h (prep_stmt): Declare.
(lang_expand_stmt): Likewise.
* c-decl.c (lang_expand_stmt): Remove.
* c-semantics.c (lang_expand_stmt): Define.
(prep_stmt): New function.
(expand_stmt): Handle common statement types here.
* cp-tree.h (init_cp_semantics): Declare.
(genrtl_try_block): Don't declare.
(genrtl_handler): Likewise.
(genrtl_catch_block): Likewise.
(genrtl_ctor_stmt): Likewise.
(genrtl_subobject): Likewise.
(genrtl_do_poplevel): Likewise.
(genrtl_named_return_value): Likewise.
* lex.c (init_parse): Call init_cp_semantics.
* semantics.c (genrtl_try_block): Give it internal linkage.
(genrtl_handler): Likewise.
(genrtl_catch_block): Likewise.
(genrtl_ctor_stmt): Likewise.
(genrtl_subobject): Likewise.
(genrtl_do_poplevel): Likewise.
(genrtl_named_return_value): Likewise.
(lang_expand_stmt): Rename to ...
(cp_expand_stmt): ... this. Only handle C++-specific nodes.
(init_cp_semantics): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36229 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index 6f442c466c6..e995b9978e0 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -264,6 +264,9 @@ extern int (*lang_statement_code_p) PARAMS ((enum tree_code)); extern tree walk_stmt_tree PARAMS ((tree *, walk_tree_fn, void *)); +extern void prep_stmt PARAMS ((tree)); +extern void (*lang_expand_stmt) PARAMS ((tree)); +extern void expand_stmt PARAMS ((tree)); /* The variant of the C language being processed. Each C language front-end defines this variable. */ @@ -585,8 +588,6 @@ extern int anon_aggr_type_p PARAMS ((tree)); extern void emit_local_var PARAMS ((tree)); extern void make_rtl_for_local_static PARAMS ((tree)); extern tree expand_cond PARAMS ((tree)); -extern tree expand_stmt PARAMS ((tree)); -extern tree lang_expand_stmt PARAMS ((tree)); extern void c_expand_return PARAMS ((tree)); extern tree c_expand_start_case PARAMS ((tree)); extern void do_case PARAMS ((tree, tree)); |