* gcc-interface/decl.c (gnat_to_gnu_entity): Add GNAT_DECL local
commit583201de7c49a40ef42bdaa35485475d4b811f49
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Jul 2018 10:36:54 +0000 (7 10:36 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Jul 2018 10:36:54 +0000 (7 10:36 +0000)
tree2ae3078df0700c2e8fd2ada470b8e1aa6dff0612
parent9269b9d3e6e91229044fc18630430170da6e03d1
* gcc-interface/decl.c (gnat_to_gnu_entity): Add GNAT_DECL local
variable and use it throughout.
<E_Variable>: If the nominal subtype of the object is unconstrained,
compute the Ada size separately and put in on the padding type if the
size is not fixed.
<E_Record_Type>: Minor tweak.
* gcc-interface/misc.c (gnat_type_max_size): Rename max_size_unit
into max_size_unit throughout.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262498 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/misc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/stack_usage6.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/stack_usage6_pkg.ads [new file with mode: 0644]