gcc/gcc testsuite/treelang/ChangeLog testsuite ...

phython@gcc.gnu.org phython@gcc.gnu.org
Sun Aug 8 04:47:00 GMT 2004


CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	phython@gcc.gnu.org	2004-08-08 04:47:17

Modified files:
	gcc/testsuite/treelang: ChangeLog a01gcci01.c 
	gcc/treelang   : ChangeLog Make-lang.in lex.l parse.y tree1.c 
	                 treelang.h treetree.c treetree.h 
Added files:
	gcc/testsuite/treelang/compile: badreturn.tree compile.exp 
	                                full_unit.tree tabs.tree 
	                                var_defs.tree 

Log message:
	treelang:
	2004-08-01  James A. Morrison  <phython@gcc.gnu.org>
	
	* Make-lang.in (TREE_BE_LIBS): Remove.
	(tree1): Depend on BACKEND and LIBDEPS.  Use BACKEND and LIBS instead
	of TREE_BE_LIBS.
	* parse.y: Add variable_defs_opt before statements_opt.
	Use tree_code_get_type instead of get_type_for_numeric_type.
	Reformat long lines.
	(parameters_opt): New rule.
	(function_prototype): Use parameters_opt.
	(return): Remove calls to print_token in error cases.  Use VOID_TYPE.
	(check_type_match): Use VOID_TYPE.
	* lex.l (update_lineno_charno): Ensure INPUT_LINE starts at 1.
	* tree1.c: Include version.h and cgraph.h
	(treelang_parse_file): Call cgraph_finalize_compilation_unit and
	cgraph_optimize.
	* treelang.h (item): Remove extraneous GTY.
	* treetree.h (get_type_for_numeric_type): Remove.
	* treetree.c: Include tree-dump.h, tree-iterator.h, tree-gimple.h,
	function.h, and cgraph.h.  Don't include rtl.h
	(keep_level_p): Remove.
	(tree_push_atomic_type_decl): Remove.
	(get_type_for_numeric_type): Remove.
	(tree_code_get_numeric_type): Remove.
	(global_bindings_p): Make static.
	(getdecls): Likewise.
	(insert_block): Likewise.
	(tree_code_if_start): Create a COND_EXPR and add it to the tree
	instead of creating rtl.
	(tree_code_if_else): Create a BIND_EXPR if any variables were created
	in the if statement.
	(tree_code_end_if): Likewise.
	(tree_code_create_function_prototype): Use tree_code_get_type.
	Don't use SET_DECL_ASSEMBLER_NAME.
	(tree_code_create_function_initial): Set DECL_ARTIFICIAL and
	DECL_IGNORING_P on RESULT_DECL.  Use tree_code_get_type.  Don't call
	layout_decl on RESULT_DECL.  Don't call rtl expand functions.
	(tree_code_create_function_wrapup): Don't call rtl expand functions.
	Create a BIND_EXPR for each function.  Dump original and gimplified
	copies of the function tree.  Gimplify function.
	(tree_code_create_variable): Use tree_code_get_type.  Don't call
	layout_decl or expand_decl.  Fold CONVERT_EXPRs.
	(tree_code_generate_return): Fold CONVERT_EXPRs and MODIFY_EXPRs.
	Add RETURN_EXPR to the current statement list.  Don't call rtl expand
	functions.
	(tree_code_output_expression_statement): Append CODE to current
	statement list.
	(tree_code_get_expression): Fold expressions.  Build a pointer to
	a FUNCTION_TYPE intead of the called functions return type.
	(struct binding_level): Add statement list STMTS.
	(getstmtlist): New Function.
	(pushlevel): Make static.  Allocate an empty statement list.
	(poplevel): Make static.  Don't clear BLOCK_NODE's BLOCK_VARS.
	Don't use DECL_ASSEMBLER_NAME.
	(tree_push_type_decl): Set TYPE_NAME of TYPE_NODE to ID.
	(treelang_init_decl_processing): Define basic types after unused types.
	Don't call tree_push_atomic_type_decl.
	(builtin_function): Don't call make_decl_rtl.
	(treelang_expand_function). New Function.
	
	testsuite/treelang:
	* compile/vars_def.tree: New File.
	* compile/badreturn.tree: New File.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/ChangeLog.diff?cvsroot=gcc&r1=1.4&r2=1.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/a01gcci01.c.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/compile/badreturn.tree.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/compile/compile.exp.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/compile/full_unit.tree.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/compile/tabs.tree.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/compile/var_defs.tree.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/ChangeLog.diff?cvsroot=gcc&r1=1.86&r2=1.87
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/Make-lang.in.diff?cvsroot=gcc&r1=1.46&r2=1.47
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/lex.l.diff?cvsroot=gcc&r1=1.8&r2=1.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/parse.y.diff?cvsroot=gcc&r1=1.11&r2=1.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/tree1.c.diff?cvsroot=gcc&r1=1.16&r2=1.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/treelang.h.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/treetree.c.diff?cvsroot=gcc&r1=1.40&r2=1.41
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/treetree.h.diff?cvsroot=gcc&r1=1.8&r2=1.9



More information about the Gcc-cvs mailing list