This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [treelang] Fix external references and argument-less functions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]