c-ada-spec.c (dump_ada_double_name): New case.
commit9e25c7ed961ca501496015a68fea46563c177684
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 28 Feb 2018 14:14:12 +0000 (28 14:14 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 28 Feb 2018 14:14:12 +0000 (28 14:14 +0000)
tree76cb9c639ac8d17db0c899e6499d15dd91702c4c
parent09de35509f92de3a11a1ca879b958c0f73e28b88
c-ada-spec.c (dump_ada_double_name): New case.

* c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
(is_char_array): Take a type instead of a declaration.
(dump_ada_array_type): Likewise.
(is_simple_enum): Minor tweak.
(dump_ada_enum_type): New function extracted from...
(dump_ada_node) <ENUMERAL_TYPE>: ...here.  Invoke it.
<INTEGER_TYPE>: Remove unreachable code.
<RECORD_TYPE>: Likewise.  Minor tweaks.
(dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
<ENUMERAL_TYPE>: New case.
<RECORD_TYPE>: Factor out common code.
(dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
Minor tweaks.  Deal with enumeral types.
(dump_ada_structure): Minor tweaks.

From-SVN: r258067
gcc/c-family/ChangeLog
gcc/c-family/c-ada-spec.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/dump-ada-spec-12.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/dump-ada-spec-13.c [new file with mode: 0644]