]> git.ipfire.org Git - thirdparty/gcc.git/commit
Another small fix to implementation of -fdump-ada-spec
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 23 May 2024 16:26:12 +0000 (18:26 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 23 May 2024 16:28:01 +0000 (18:28 +0200)
commit0b3b6a8df77b0ae15078402ea5fb933d6fccd585
tree711fd18ab9c2fed6a97a2eaecbe7612f7f6d9737
parentdca3e6b9049ff3c1432d4717ca2309e7aad20447
Another small fix to implementation of -fdump-ada-spec

This avoids generating invalid Ada code for function with a multidimensional
array parameter and also cleans things up left and right.

gcc/c-family/
* c-ada-spec.cc (check_type_name_conflict): Add guard.
(is_char_array): Simplify.
(dump_ada_array_type): Use strip_array_types.
(dump_ada_node) <POINTER_TYPE>: Deal with anonymous array types.
(dump_nested_type): Use strip_array_types.
gcc/c-family/c-ada-spec.cc