c-ada-spec.c (has_static_fields): Look only into variables.
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 5 Aug 2017 22:00:41 +0000 (22:00 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 5 Aug 2017 22:00:41 +0000 (22:00 +0000)
commitb854df3cd8b3fd13e63647d2de2b5366e751a6b6
tree9bb4f100537f195cfcac5df389c9a7b82701bb26
parente7e5639eb2397f6f33f4684798267b9a57c7f611
c-ada-spec.c (has_static_fields): Look only into variables.

* c-ada-spec.c (has_static_fields): Look only into variables.
(print_constructor): Add TYPE parameter and use it for the name.
(print_destructor): Likewise.
(print_ada_declaration): Adjust to new constructor/destructor names.
Adjust calls to print_constructor and print_destructor.
(print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
Look only into variables in the final loop.

From-SVN: r250890
gcc/c-family/ChangeLog
gcc/c-family/c-ada-spec.c