decl.c (gnat_to_gnu_entity): Add GNAT_DECL local variable and use it throughout.
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 7 Jul 2018 10:36:54 +0000 (10:36 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 7 Jul 2018 10:36:54 +0000 (10:36 +0000)
commit87668878151c9d5aba57357368d3a90277c6b87f
tree2ae3078df0700c2e8fd2ada470b8e1aa6dff0612
parent56b8aa0c875022911e96cbe3c9f87a98e4ecd76b
decl.c (gnat_to_gnu_entity): Add GNAT_DECL local variable and use it throughout.

* 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.

From-SVN: r262498
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]