Go to file
Mark Mitchell ae499ccea4 Move statement-tree facilities from C++ to C front-end.
* c-common.h (c_tree_index): Add CTI_VOID_ZERO.
	(void_zero_node): New macro.
	(struct stmt_tree_s): New type.
	(stmt_tree): New typedef.
	(struct language_function): New type.
	(last_tree): New macro.
	(last_expr_type): Likewise.
	(walk_tree_fn): New typedef.
	(current_stmt_tree): New function.
	(begin_stmt_tree): Likewise.
	(add_stmt): Likewise.
	(finish_stmt_tree): Likewise.
	(statement_code_p): Likewise.
	(lang_statement_code_p): New variable.
	(walk_stmt_tree): New function.
	(STMT_IS_FULL_EXPR_P): New macro.
	* c-common.c (lang_statement_code_p): New variable.
	(c_common_nodes_and_builtins): Initialize void_zero_node.
	(statement_code_p): New function.
	(walk_stmt_tree): Likewise.
	* c-decl.c (language_function): Rename to ...
	(c_language_function): ... this.  Include language_function.
	(push_c_function_context): Adjust accordingly.
	(pop_c_function_context): Likewise.
	(mark_c_function_context): Likewise.
	(current_stmt_tree): Define.
	* c-semantics.c (begin_stmt_tree): New function.
	(add_stmt): Likewise.
	(prune_unused_decls): Likewise.
	(finish_stmt_tree): Likewise.

	Move statement-tree facilities from C++ to C front-end.
	* cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO.
	(void_zero_node): Remove.
	(stmt_tree): Likewise.
	(scope_chain): Adjust.
	(language_function): Rename to cp_language_function.
	(cp_function_chain): Adjust.
	(current_stmt_tree): Remove.
	(last_tree): Likewise.
	(last_expr_type): Likewise.
	(struct lang_decl): Adjust.
	(STMT_IS_FULL_EXPR_P): Remove.
	(add_tree): Remove.
	(begin_stmt_tree): Likewise.
	(finish_stmt_tree): Likewise.
	(walk_tree_fn): Likewise.
	(walk_stmt_tree): Likewise.
	* class.c (finish_struct): Replace use of add_tree with add_stmt.
	* decl.c (mark_stmt_tree): Adjust type.
	(init_decl_processing): Don't build void_zero_node.
	(initialize_local_var): Adjust usage of current_stmt_tree.
	(finish_enum): Use add_stmt, not add_tree.
	(save_function_data): Adjust use of language_function.
	(finish_constructor_body): Use add_stmt, not add_tree.
	(finish_destructor_body): Likewise.
	(push_cp_function_context): Adjust use of language_function.
	(pop_cp_function_context): Likewise.
	(mark_lang_function): Likewise.
	(mark_cp_function_context): Likewise.
	* init.c (build_aggr_init): Adjust use of current_stmt_tree.
	(build_vec_init): Likewise.
	* semantics.c (SET_LAST_STMT): Remove.
	(RECHAIN_STMTS): Don't use it.
	(stmts_are_full_exprs_p): Adjust use of current_stmt_tree.
	(current_stmt_tree): Define.
	(add_tree): Remove.
	(finish_goto_stmt): Use add_stmt, not add_tree.
	(finish_expr_stmt): Likewise.
	(begin_if_stmt): Likewise.
	(finish_then_clause): Likewise.
	(begin_while_stmt): Likewise.
	(begin_do_stmt): Likewise.
	(finish_return_stmt): Likewise.
	(begin_for_stmt): Likewise.
	(finish_break_stmt): Likewise.
	(finish_continue_stmt): Likewise.
	(begin_switch_stmt): Likewise.
	(finish_case_label): Likewise.
	(begin_try_block): Likewise.
	(begin_function_try_block): Likewise.
	(begin_handler): Likewise.
	(begin_catch_block): Likewise.
	(begin_compound_stmt): Likewise.
	(begin_asm_stmt): Likewise.
	(finish_asm_stmt): Likewise.
	(finish_label_stmt): Likewise.
	(add_decl_stmt): Likewise.
	(finish_subobject): Likewise.
	(finish_decl_cleanup): Likewise.
	(finish_named_return_value): Likewise.
	(setup_vtbl_ptr): Likewise.
	(add_scope_stmt): Likewise.
	(finish_stmt_expr): Likewise.
	(prune_unused_decls): Remove.
	(begin_stmt_tree): Likewise.
	(finish_stmt_tree): Likewise.
	(prep_stmt): Adjust use of current_stmt_tree.
	(lang_expand_stmt): Likewise.
	* tree.c (statement_code_p): Remove.
	(cp_statement_code_p): New function.
	(walk_stmt_tree): Remove.
	(init_tree): Set lang_statement_code_p.

From-SVN: r36221
2000-09-07 01:36:11 +00:00
boehm-gc re GNATS libgcj/230 (Function GC_debug_object_start does not exist) 2000-09-04 21:46:26 +00:00
config mh-djgpp: Conditionally set 'target_alias' to djgpp. 2000-08-04 10:17:37 -06:00
contrib gcc_update: Execute touch_files_reexec even if cvs update failed. 2000-08-30 21:56:42 +00:00
etc
gcc Move statement-tree facilities from C++ to C front-end. 2000-09-07 01:36:11 +00:00
include John David Anglin <dave@hiauly1.hia.nrc.ca> 2000-09-05 23:10:12 -07:00
INSTALL
libchill
libf2c Daily bump. 2000-09-06 01:45:08 -06:00
libffi configure.in [...] (TARGET, TARGETDIR): Set. 2000-08-24 01:01:57 +00:00
libiberty cp-demangle.c (demangle_encoding): Rename variable. 2000-09-05 22:37:17 +00:00
libio Move statement-tree facilities from C++ to C front-end. 2000-09-07 01:36:11 +00:00
libjava jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long' to avoid long long division. 2000-09-06 22:25:56 +00:00
libobjc Move statement-tree facilities from C++ to C front-end. 2000-09-07 01:36:11 +00:00
libstdc++ bitset (bitset::_M_is_any): Don't use __BITSET_WORDS macro on _Nw since _Nw is already the number of words... 2000-08-22 13:24:01 -06:00
libstdc++-v3 acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Force glibc_satisfactory to no... 2000-09-07 01:02:01 +00:00
texinfo
zlib configure.in (multilib): Enable by default only for target. 2000-09-06 19:13:01 +00:00
.cvsignore
ChangeLog * Makefile.in (all-zlib): Added dummy target. 2000-09-06 18:58:34 +00:00
config-ml.in config-ml.in (CC, CXX): Avoid trailing whitespace. 2000-08-22 05:02:48 +00:00
config.guess Checked in for recognition of x86_64 2000-09-05 10:33:51 +00:00
config.if
config.sub Checked in for recognition of x86_64 2000-09-05 10:33:51 +00:00
configure top level: 2000-08-14 18:08:46 +00:00
configure.in Configure changes required for zlib. 2000-09-03 21:09:10 +00:00
COPYING
COPYING.LIB
djunpack.bat
install-sh
libtool.m4 ltconfig, [...]: Updated from libtool multi-language branch. 2000-09-06 13:59:29 +00:00
ltcf-c.sh ltconfig, [...]: Updated from libtool multi-language branch. 2000-09-06 13:59:29 +00:00
ltcf-cxx.sh ltconfig, [...]: Updated from libtool multi-language branch. 2000-09-06 13:59:29 +00:00
ltcf-gcj.sh ltconfig, [...]: Updated from libtool multi-language branch. 2000-09-06 13:59:29 +00:00
ltconfig ltconfig, [...]: Updated from libtool multi-language branch. 2000-09-06 13:59:29 +00:00
ltmain.sh ltconfig, [...]: Updated from libtool multi-language branch. 2000-09-06 13:59:29 +00:00
MAINTAINERS MAINTAINERS: Add self to Write After Approval list. 2000-08-30 20:40:25 +00:00
Makefile.in * Makefile.in (all-zlib): Added dummy target. 2000-09-06 18:58:34 +00:00
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
ylwrap

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.


Check the INSTALL directory for detailed configuration and installation
instructions.


Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.