restrict.adb (Update_Restrictions): For restrictions with a maximum parameter (e.g.
authorEd Schonberg <schonberg@adacore.com>
Fri, 1 Aug 2014 14:46:11 +0000 (14:46 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 1 Aug 2014 14:46:11 +0000 (16:46 +0200)
commit1696d58da2675e9007645304d010710e34022482
tree8bd9b3e28a77d47e7ac709aba3431ab20ad8a3ee
parent9a30c7c4092fa2e7f46ee54883404a3fe34f2919
restrict.adb (Update_Restrictions): For restrictions with a maximum parameter (e.g.

2014-08-01  Ed Schonberg  <schonberg@adacore.com>

* restrict.adb (Update_Restrictions): For restrictions with a
maximum parameter (e.g. number of protected entries in Ravenscar)
do not compute the maximum of the violation over several objects,
because the restriction is per-object.
(Check_Restriction): After possible message, reset the value
of of a checked max_parameter restriction to zero, to prevent
cascaded errors.
* sem_ch3.adb (Build_Derived_Private_Type): Use base of parent
(sub)type to determine whether derived type should be on the
list of private dependents of a type whose full view may become
visible subsequently.

From-SVN: r213483
gcc/ada/ChangeLog
gcc/ada/restrict.adb
gcc/ada/sem_ch3.adb