rtsfind.ads: Add RE_Lock_Read_Only into rtsfind circuitry.
authorPascal Obry <obry@adacore.com>
Tue, 27 Sep 2011 09:16:57 +0000 (09:16 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 27 Sep 2011 09:16:57 +0000 (11:16 +0200)
commit343250a6d51af7dcd96f1d3a253c9971a5db6bc5
tree270e602ff78dbecb097e5aa8cfefa927c2aef41e
parent48acf1b78b128d2cace0705d159db7e2791756cf
rtsfind.ads: Add RE_Lock_Read_Only into rtsfind circuitry.

2011-09-27  Pascal Obry  <obry@adacore.com>

* rtsfind.ads: Add RE_Lock_Read_Only into rtsfind circuitry.
(RE_Id): Add RE_Lock_Read_Only.
(RE_Unit_Table): Likewise.
* sem_prag.adb (Process_Convention): Change Pragma_Locking_Policy
to lift restriction on first character. Handle now the
Name_Concurrent_Readers_Locking where policy character is set to
'R'.
* snames.ads-tmpl (Name_Concurrent_Readers_Locking): New
constant.
* exp_ch9.adb (Build_Protected_Subprogram_Body): Generate a
read only lock for function in protected object.
* s-taprob.ads (Lock_Read_Only): Remove obsolete comment as
this routine is now used.

From-SVN: r179248
gcc/ada/ChangeLog
gcc/ada/exp_ch9.adb
gcc/ada/gnat_rm.texi
gcc/ada/rtsfind.ads
gcc/ada/s-taprob.ads
gcc/ada/sem_prag.adb
gcc/ada/snames.ads-tmpl