c-ada-spec.c (dump_ada_template): Mark underlying instance type as visited.
authorArnaud Charlet <charlet@adacore.com>
Wed, 4 Aug 2010 15:50:10 +0000 (15:50 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 4 Aug 2010 15:50:10 +0000 (17:50 +0200)
commit3b0c690efc298363b4043746b058852fdafc5799
treec5e2853f537f5deab584b38d7d37a62b66a386d0
parent55e3bc4cec7595280c4a69b258cafd887b6d9684
c-ada-spec.c (dump_ada_template): Mark underlying instance type as visited.

* 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.

From-SVN: r162868
gcc/c-family/ChangeLog
gcc/c-family/c-ada-spec.c