[Ada] Unnesting: refactor handling of uplevel refs. for unconstrained arrays
authorEd Schonberg <schonberg@adacore.com>
Mon, 11 Jun 2018 09:19:17 +0000 (09:19 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 11 Jun 2018 09:19:17 +0000 (09:19 +0000)
commitfc0e632a9972a43cd40daeacb2884beb421587dd
tree5bc8455c4972ed880ca300e42aba2b1391d4a0ae
parent6534852011f3e72090c690ffc53b990feb709b9f
[Ada] Unnesting: refactor handling of uplevel refs. for unconstrained arrays

2018-06-11  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* exp_unst.ads, exp_unst.adb (Needs_Fat_Pointer,
Build_Access_Type_Decl): New subprograms to handle uplevel references
to formals of an unconstrained array type. The activation record
component for these is an access type, and the reference is rewritten
as an explicit derefenrence of that component.

From-SVN: r261425
gcc/ada/ChangeLog
gcc/ada/exp_unst.adb
gcc/ada/exp_unst.ads