[Ada] Unnesting: avoid unnecessary loads of System
authorEd Schonberg <schonberg@adacore.com>
Tue, 9 Oct 2018 15:05:29 +0000 (15:05 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 9 Oct 2018 15:05:29 +0000 (15:05 +0000)
commit73efc7ff4c07b08d8c8ab5e5deeb00d5586878e3
tree3d49d245b0a425b412cf9bcec11d0e8041a3e26c
parente7e72f9b7a03cc9756ee5bff4c1b39a226228222
[Ada] Unnesting: avoid unnecessary loads of System

2018-10-09  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* exp_unst.adb (Unnest_Subprogram): Do not load System to obtain
the Address entity unless an activation record is being built.
Removes useless with_clauses for System when nested subprograms
do not have uplevel references, and therefore do not need
activation records.

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