Fix duplicate name issues in output of -fdump-ada-spec #2
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 1 Jul 2021 16:02:47 +0000 (18:02 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 1 Jul 2021 16:13:12 +0000 (18:13 +0200)
commit506c68e25fb6aea135468972dbc9d8abf816a443
tree6c96388efee6b8865f863cf3f9dcaa9cf24fd8d3
parentcdf4576b201aa81fd853b06242b16e4215ead5a9
Fix duplicate name issues in output of -fdump-ada-spec #2

This extends the type name conflict detection mechanism to variables.

gcc/c-family/
* c-ada-spec.c (check_name): Rename into...
(check_type_name_conflict): ...this.  Minor tweak.
(dump_ada_function_declaration): Adjust to above renaming.
(dump_ada_array_domains): Fix oversight.
(dump_ada_declaration): Call check_type_name_conflict for variables.
gcc/c-family/c-ada-spec.c