ada-tree.h (TYPE_PADDING_FOR_COMPONENT): New macro.
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 2 Jun 2018 10:45:41 +0000 (10:45 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 2 Jun 2018 10:45:41 +0000 (10:45 +0000)
commit988ee9bc105a949e9c3df2970b4231e23990d9df
tree5d94267e5b88bb6e5182aa17143b19fc2e1510bc
parent82b337774c1429683681b3b4c084311b03a998fc
ada-tree.h (TYPE_PADDING_FOR_COMPONENT): New macro.

* gcc-interface/ada-tree.h (TYPE_PADDING_FOR_COMPONENT): New macro.
* gcc-interface/decl.c (gnat_to_gnu_component_type): Cache the padding
type built for an aliased component with variable size.

From-SVN: r261106
gcc/ada/ChangeLog
gcc/ada/gcc-interface/ada-tree.h
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/opt3.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/opt3_pkg.ads [new file with mode: 0644]