einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry families.
authorEd Schonberg <schonberg@adacore.com>
Mon, 18 Oct 2010 10:10:51 +0000 (10:10 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 18 Oct 2010 10:10:51 +0000 (12:10 +0200)
commitb7f17b2062c6e07c4236e16d124e9f1dcd34447f
tree9d44d5009c4eacefdf04073beccd3205499d3266
parent12009a12f4f447123c23b6b54674b105b26cbb54
einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry families.

2010-10-18  Ed Schonberg  <schonberg@adacore.com>

* einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
families. Denotes a procedure that performs pre/postcondition checks
and then performs the entry call.
* sem_res.adb (Resolve_Entry_Call): If the entry has
pre/postconditions, replace call with a call to the PPC_Wrapper of the
entry.
* exp_ch9.adb (Build_PPC_Wrapper): new procedure.
(Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
Build_PPC_Wrapper for all entries in task and protected definitions.

From-SVN: r165622
gcc/ada/ChangeLog
gcc/ada/einfo.adb
gcc/ada/einfo.ads
gcc/ada/exp_ch9.adb
gcc/ada/sem_res.adb