]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Unnesting: refactor handling of uplevel refs. for unconstrained arrays
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Jun 2018 09:19:17 +0000 (09:19 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Jun 2018 09:19:17 +0000 (09:19 +0000)
commit48f91b08763497b04eef4d4a753167a052c5edf1
tree5bc8455c4972ed880ca300e42aba2b1391d4a0ae
parentef695c17b2e478d6a17007f358e3a56909a39ab5
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261425 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/exp_unst.adb
gcc/ada/exp_unst.ads