exp_ch9.adb (Build_Protected_Entry): Propagate the original source location to allow...
authorJavier Miranda <miranda@adacore.com>
Tue, 14 Aug 2007 08:47:24 +0000 (10:47 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 14 Aug 2007 08:47:24 +0000 (10:47 +0200)
commit9f6ea00a897b1143ecd36624912711d3d92c42c3
treeac83d1f5c9320482eab4b0f309d6556eb05de459
parentaa5147f00a99f736c4c75871979f738241579084
exp_ch9.adb (Build_Protected_Entry): Propagate the original source location to allow the correct generation of...

2007-08-14  Javier Miranda  <miranda@adacore.com>
    Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch9.adb (Build_Protected_Entry): Propagate the original source
location to allow the correct generation of errors in case of
restrictions applied to the expanded code.
(Expand_Entry_Barrier): Remove all generated renamings for a barrier
function if the condition does not reference them.
(Expand_Entry_Body_Declarations): Mark the index constant as having a
valid value.

From-SVN: r127448
gcc/ada/exp_ch9.adb