[treelang] Fix external references and argument-less functions

James A. Morrison ja2morri@csclub.uwaterloo.ca
Thu Feb 24 19:41:00 GMT 2005


ja2morri@csclub.uwaterloo.ca (James A. Morrison) writes:

>  Hi,
> 
>   This patch allows treelang files with external_references to compile, as
> they are documented to.  It also allows functions that take no arguments to
> be called.  This patch has been tested with make tree1 and make check-treelang.
> I'm currently bootstrapping and regtesting on sparc-linux.  Ok for mainline if
> the testing passes?
> 
> -- 
> Thanks,
> Jim
> 
> http://www.student.cs.uwaterloo.ca/~ja2morri/
> http://phython.blogspot.com
> http://open.nit.ca/wiki/?page=jim
> 
> 
> 2005-02-24  James A. Morrison  <phython@gcc.gnu.org>
> 
> 	* parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
> 	Move function parameters check from ...
> 	(function): ...Here.  Update call to tree_code_create_function_initial.
> 	(function_invocation): Use expressions_with_commas_opt instead of
> 	expressions_with_commas.
> 	(expressions_with_commas_opt): New rule.
> 	* treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
> 	for function parameters.
> 	(tree_code_create_function_initial): Remove PARMS parameter.
> 	Don't create PARM_DECLs for function parameters.
> 	* treetree.h (tree_code_create_function_initial): Remove PARMS
> 	parameter.

 Committed with the tests.

-- 
Thanks,
Jim

http://www.student.cs.uwaterloo.ca/~ja2morri/
http://phython.blogspot.com
http://open.nit.ca/wiki/?page=jim



More information about the Gcc-patches mailing list