[patch] improve support for nested types in -fdump-ada-spec

Joseph S. Myers joseph@codesourcery.com
Wed Aug 4 15:40:00 GMT 2010


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



More information about the Gcc-patches mailing list