c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 17 Apr 2016 17:38:28 +0000 (17:38 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 17 Apr 2016 17:38:28 +0000 (17:38 +0000)
commit23f2660fb17e1160870fd00fe9aa73c8554c74b5
tree04e24f7d9984ce6f942a4c2471692d0faa329225
parentd0e037eb8803681527ec7c81ba40bc4e27b1b1bb
c-ada-spec.c (get_underlying_decl): Return the typedef, if any.

* c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
(dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
to incomplete types.
(dump_nested_type): Remove redundant tests and tidy up.
(print_ada_declaration): Also set TREE_VISITED on the declaration of
a type which is the typedef of an original type.

From-SVN: r235084
gcc/c-family/ChangeLog
gcc/c-family/c-ada-spec.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/dump-ada-spec-3.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/dump-ada-spec-4.c [new file with mode: 0644]