[Ada] Add a new Is_Activation_Record flag on IN parameters
authorEd Schonberg <schonberg@adacore.com>
Thu, 24 May 2018 13:06:40 +0000 (13:06 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 24 May 2018 13:06:40 +0000 (13:06 +0000)
commit7037d2bbd04f5b845b899e533a96334c0e2f653e
tree9461445ae2a4c5b7e6def5dc277e37d24bf0d313
parentd72ba19f9940286ba9e297fe45b9b2d802aee549
[Ada] Add a new Is_Activation_Record flag on IN parameters

2018-05-24  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* einfo.ads, einfo.adb (Is_Activation_Record): New flag on
in_parameters, used when unesting subprograms for LLVM, to indicate
that a generated parameter carries the activation record from the
enclosing subprogram.
* exp_unst.adb (Check_Static_Type): Handle array attributes of types
whose bounds may contain up-level references that need to be added to
an activation recoord.
(Add_Extra_Formal): Set Is_Activation_Record on new formal.

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