c-ada-spec.c (to_ada_name): Add index parameter.
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 29 Sep 2017 18:51:00 +0000 (18:51 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 29 Sep 2017 18:51:00 +0000 (18:51 +0000)
commit6e3e841997276a3a3ac5c90b253ba235d8262990
tree7b23cfe5ea2302a3fac8b2802b46baceb552beb3
parente9d297a15d68121ba5bdd5a76ea71c1916180622
c-ada-spec.c (to_ada_name): Add index parameter.

* c-ada-spec.c (to_ada_name): Add index parameter.
(pp_ada_tree_identifier): Likewise.
(dump_ada_macros): Adjust call to to_ada_name.
(struct overloaded_name_hash): New type.
(struct overloaded_name_hasher): Likewise.
(overloaded_names): New hash table.
(compute_overloading_index): New function.
(dump_ada_decl_name): Call it and pass the result to
pp_ada_tree_identifier.
(dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
(dump_ada_function_declaration): Likewise.
(dump_generic_ada_node): Likewise.
(print_constructor): Likewise.
(print_destructor): Likewise.
(dump_ada_specs): Delete overloaded_names table.

From-SVN: r253306
gcc/c-family/ChangeLog
gcc/c-family/c-ada-spec.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/dump-ada-spec-10.C [new file with mode: 0644]