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: [patch] improve support for nested types in -fdump-ada-spec


On Wed, 4 Aug 2010, Arnaud Charlet wrote:

> Tested on x86_64-linux-gnu, OK for trunk?
> 
> 	* c-ada-spec.c (dump_ada_template): Mark underlying instance type as
> 	visited.
> 	(dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
> 	decide whether a type has already been declared/seen.
> 	Do not go to the original type.
> 	(dump_nested_types): New parameter forward.
> 	Generate forward declaration if needed and mark type as visited.
> 	(print_ada_declaration): Call dump_nested_types if not already done.
> 	Mark types as visited.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


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