]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix issue for pointers to anonymous types with -fdump-ada-spec
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 25 Mar 2022 11:35:33 +0000 (12:35 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 25 Mar 2022 11:37:01 +0000 (12:37 +0100)
commit711c7f079bc0d250e6c5c4450828453c1096542c
treedd5c153e937137d7ae166d1e8d41031a5177b860
parent45e955b0a936eafc9838cdc00dcc31b3799b321b
Fix issue for pointers to anonymous types with -fdump-ada-spec

This used to work long ago but broke at some point.

gcc/c-family/
* c-ada-spec.cc (dump_ada_import): Deal with the "section" attribute
(dump_ada_node) <POINTER_TYPE>: Do not modify and pass the name, but
the referenced type instead.  Deal with the anonymous original type
of a typedef'ed type.  In the actual access case, follow the chain
of external subtypes.
<TYPE_DECL>: Tidy up control flow.
gcc/c-family/c-ada-spec.cc