[Ada] Unnesting: don't use Get_Actual_Subtype for record subtypes
authorEd Schonberg <schonberg@adacore.com>
Tue, 17 Jul 2018 08:08:04 +0000 (08:08 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 17 Jul 2018 08:08:04 +0000 (08:08 +0000)
commit17d65c91925fd92a656eacc230c71d1def1eff42
treedccee2400a284dfe28a672be2850faa5a23c65f6
parentf2c2cdfbdb3f1653c330945bc5b61a8da5a67881
[Ada] Unnesting: don't use Get_Actual_Subtype for record subtypes

2018-07-17  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* exp_unst.adb (Unnest_Subprograms): Do nothing if the expander is not
active.  Don't use Get_Actual_Subtype for record subtypes.  Ignore
rewritten identifiers and uplevel references to bounds of types that
come from the original type reference.

From-SVN: r262787
gcc/ada/ChangeLog
gcc/ada/exp_unst.adb