[Ada] Ada2020: AI12-0107 convention of By_Protected_Procedure
authorJavier Miranda <miranda@adacore.com>
Wed, 3 Jun 2020 18:07:27 +0000 (14:07 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 16 Jul 2020 09:17:58 +0000 (05:17 -0400)
commitd9206abba7e6ac0328cafb3f3556c17220101024
tree35a94ff1a9ff533796e5ce59755b4490d0bade8c
parente4a99831f4fee023e50f4116318e678757bdf4ed
[Ada] Ada2020: AI12-0107 convention of By_Protected_Procedure

gcc/ada/

* exp_attr.adb (Has_By_Protected_Procedure_Prefixed_View): New
subprogram.
(Expand_Access_To_Protected_Op): Adding support for prefixed
class-wide view with By_Protected_Procedure convention.
* sem_attr.adb (Get_Convention): New subprogram.
(Get_Kind): Adapted to use Get_Convention.
* sem_ch4.adb (Try_By_Protected_Procedure_Prefixed_View): New
subprogram.
(Analyze_Selected_Component): Invoke
Try_By_Protected_Procedure_Prefixed_View.
* sem_util.ads (Is_By_Protected_Procedure): New subprogram.
* sem_util.adb (Is_By_Protected_Procedure): New subprogram.
gcc/ada/exp_attr.adb
gcc/ada/sem_attr.adb
gcc/ada/sem_ch4.adb
gcc/ada/sem_util.adb
gcc/ada/sem_util.ads