exp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest generic subprograms.
authorRobert Dewar <dewar@adacore.com>
Wed, 4 Mar 2015 09:57:07 +0000 (09:57 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 4 Mar 2015 09:57:07 +0000 (10:57 +0100)
commit488f9623ba0c3762eec2fdd9117c0d8dccb4d797
treedcfb567eda62825a89f603f5277d157664b3fc05
parentb6a56408a630f3fe20b4664520302adab8bd10a6
exp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest generic subprograms.

2015-03-04  Robert Dewar  <dewar@adacore.com>

* exp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest
generic subprograms.
* exp_unst.adb (Check_Dynamic_Type): Handle record types properly
(Note_Uplevel_Reference): Ignore uplevel references to non-types
(Get_Level): Consider only subprograms, not blocks.
(Visit_Node): Set proper condition for generating ARECnF entity.
Ignore indirect calls. Ignore calls to subprograms
outside our nest.
(Unnest_Subprogram): Minor changes in dealing with ARECnF entity.
(Add_Form_To_Spec): Properly set Last_Entity field.
(Unnest_Subprogram): Set current subprogram scope for analyze calls.
Handle case of no uplevel refs in outer subprogram
Don't mark uplevel entities as aliased.
Don't deal with calls with no ARECnF requirement.

2015-03-04  Robert Dewar  <dewar@adacore.com>

* s-valrea.adb (Scan_Real): Remove redundant tests from scaling loops.
* s-imgdec.adb (Set_Decimal_Digits): Remove redundant Max
operation in computing LZ.
* sem_attr.adb: Minor typo fix

From-SVN: r221177
gcc/ada/ChangeLog
gcc/ada/exp_ch6.adb
gcc/ada/exp_unst.adb
gcc/ada/s-imgdec.adb
gcc/ada/s-valrea.adb
gcc/ada/sem_attr.adb