summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_util.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/sem_util.ads')
-rw-r--r--gcc/ada/sem_util.ads33
1 files changed, 28 insertions, 5 deletions
diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads
index cdb84dc97ca..025b0cfbbe8 100644
--- a/gcc/ada/sem_util.ads
+++ b/gcc/ada/sem_util.ads
@@ -211,6 +211,25 @@ package Sem_Util is
-- Determine whether a selected component has a type that depends on
-- discriminants, and build actual subtype for it if so.
+ function Build_Default_Init_Cond_Call
+ (Loc : Source_Ptr;
+ Obj_Id : Entity_Id;
+ Typ : Entity_Id) return Node_Id;
+ -- Build a call to the default initial condition procedure of type Typ with
+ -- Obj_Id as the actual parameter.
+
+ procedure Build_Default_Init_Cond_Procedure_Body (Typ : Entity_Id);
+ -- If private type Typ is subject to pragma Default_Initial_Condition,
+ -- build the body of the procedure which verifies the assumption of the
+ -- pragma at runtime. The generated body is added to the freeze actions
+ -- of the type.
+
+ procedure Build_Default_Init_Cond_Procedure_Declaration (Typ : Entity_Id);
+ -- If private type Typ is subject to pragma Default_Initial_Condition,
+ -- build the declaration of the procedure which verifies the assumption
+ -- of the pragma at runtime. The declaration is inserted after the related
+ -- pragma.
+
function Build_Default_Subtype
(T : Entity_Id;
N : Node_Id) return Entity_Id;
@@ -1065,6 +1084,10 @@ package Sem_Util is
-- the same type. Note that Typ may not have a partial view to begin with,
-- in that case the function returns Empty.
+ procedure Inherit_Default_Init_Cond_Procedure (Typ : Entity_Id);
+ -- Inherit the default initial condition procedure from the parent type of
+ -- derived type Typ.
+
procedure Insert_Explicit_Dereference (N : Node_Id);
-- In a context that requires a composite or subprogram type and where a
-- prefix is an access type, rewrite the access type node N (which is the
@@ -1596,17 +1619,17 @@ package Sem_Util is
-- (e.g. target of assignment, or out parameter), and to False if the
-- modification is only potential (e.g. address of entity taken).
+ function Object_Access_Level (Obj : Node_Id) return Uint;
+ -- Return the accessibility level of the view of the object Obj. For
+ -- convenience, qualified expressions applied to object names are also
+ -- allowed as actuals for this function.
+
function Original_Corresponding_Operation (S : Entity_Id) return Entity_Id;
-- [Ada 2012: AI05-0125-1]: If S is an inherited dispatching primitive S2,
-- or overrides an inherited dispatching primitive S2, the original
-- corresponding operation of S is the original corresponding operation of
-- S2. Otherwise, it is S itself.
- function Object_Access_Level (Obj : Node_Id) return Uint;
- -- Return the accessibility level of the view of the object Obj. For
- -- convenience, qualified expressions applied to object names are also
- -- allowed as actuals for this function.
-
function Original_Aspect_Name (N : Node_Id) return Name_Id;
-- N is a pragma node or aspect specification node. This function returns
-- the name of the pragma or aspect in original source form, taking into