[Ada] Major code cleanup
authorEd Schonberg <schonberg@adacore.com>
Mon, 16 Jul 2018 14:11:52 +0000 (14:11 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 16 Jul 2018 14:11:52 +0000 (14:11 +0000)
commitccc2a6139062395fb5747d0846a1ed6de25293c2
treee7664caba9debf77bbe18083906f927e8d88e4be
parent93bc357b34765dcc12709962a074c8001677c27b
[Ada] Major code cleanup

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

gcc/ada/

* einfo.adb (Set_Is_Uplevel_Referenced_Entity): Flag can appear on
loop parameters.
* exp_ch7.adb (Check_Unnesting_Elaboration_Code): Handle subprogram
bodies.
* exp_ch9.adb (Reset_Scopes_To): Set the scopes of entities local to an
entry body to be the corresponding generated subprogram, for correct
analysis of uplevel references.
* exp_unst.adb (Visit_Node): Handle properly binary and unary operators
Ignore pragmas, fix component associations.
(Register_Subprograms): Subprograms in synchronized types must be
treated as reachable.

From-SVN: r262723
gcc/ada/ChangeLog
gcc/ada/einfo.adb
gcc/ada/exp_ch7.adb
gcc/ada/exp_ch9.adb
gcc/ada/exp_unst.adb