[COMMITTED] ada: Add comment describing Partition_Elaboration_Policy dependency.
Checks
Commit Message
From: Steve Baird <baird@adacore.com>
Add a comment in the spec for the default (as opposed to hie) version of
Ada.Real_Time.Timing_Events indicating that it is incompatible with a
a Partition_Elaboration_Policy specification specifying a policy other than
Concurrent.
gcc/ada/
* libgnarl/a-rttiev.ads: add a comment
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/libgnarl/a-rttiev.ads | 6 ++++++
1 file changed, 6 insertions(+)
@@ -61,6 +61,12 @@ package Ada.Real_Time.Timing_Events is
function Time_Of_Event (Event : Timing_Event) return Time;
+ -- The compilation closure of this version (as opposed to the hie version)
+ -- of Ada.Real_TIme.Timing_Events includes a specification of a
+ -- Concurrent Partition_Elaboration_Policy. Thus, a bind-time error
+ -- will result if this unit occurs in the same partition as a conflicting
+ -- Partition_Elaboration_Policy specification.
+
private
type Timing_Event is new Ada.Finalization.Limited_Controlled with record