@@ -4066,8 +4066,8 @@ package body Contracts is
begin
Spec := Build_Call_Helper_Spec (Helper_Id);
- Set_Must_Override (Spec, False);
- Set_Must_Not_Override (Spec, False);
+ Set_Must_Override (Spec, False);
+ Set_Must_Not_Override (Spec, False);
Set_Is_Inlined (Helper_Id);
Set_Is_Public (Helper_Id);
@@ -6422,10 +6422,10 @@ package body Exp_Attr is
begin
Iter :=
Make_Iterator_Specification (Loc,
- Defining_Identifier => Elem,
- Name => Relocate_Node (Prefix (N)),
- Subtype_Indication => Empty);
- Set_Of_Present (Iter);
+ Defining_Identifier => Elem,
+ Subtype_Indication => Empty,
+ Of_Present => True,
+ Name => Relocate_Node (Prefix (N)));
New_Loop := Make_Loop_Statement (Loc,
Iteration_Scheme =>
@@ -1349,9 +1349,8 @@ package body Exp_Ch3 is
Append_To (Component_Associations (Aggr),
Make_Component_Association (Loc,
- Choices => New_List (Make_Others_Choice (Loc)),
- Expression => Empty));
- Set_Box_Present (Last (Component_Associations (Aggr)));
+ Choices => New_List (Make_Others_Choice (Loc)),
+ Box_Present => True));
if Typ /= Full_Typ then
Analyze_And_Resolve (Aggr, Full_View (Base_Type (Full_Typ)));
@@ -3097,13 +3097,11 @@ package body Sem_Ch12 is
Defining_Identifier => T,
Discriminant_Specifications => Discriminant_Specifications (N),
Unknown_Discriminants_Present => Unk_Disc,
+ Abstract_Present => Abstract_Present (Def),
+ Limited_Present => Limited_Present (Def),
Subtype_Indication => Subtype_Mark (Def),
+ Synchronized_Present => Synchronized_Present (Def),
Interface_List => Interface_List (Def));
-
- Set_Abstract_Present (New_N, Abstract_Present (Def));
- Set_Limited_Present (New_N, Limited_Present (Def));
- Set_Synchronized_Present (New_N, Synchronized_Present (Def));
-
else
New_N :=
Make_Full_Type_Declaration (Loc,
@@ -3112,12 +3110,9 @@ package body Sem_Ch12 is
Discriminant_Specifications (Parent (T)),
Type_Definition =>
Make_Derived_Type_Definition (Loc,
+ Abstract_Present => Abstract_Present (Def),
+ Limited_Present => Limited_Present (Def),
Subtype_Indication => Subtype_Mark (Def)));
-
- Set_Abstract_Present
- (Type_Definition (New_N), Abstract_Present (Def));
- Set_Limited_Present
- (Type_Definition (New_N), Limited_Present (Def));
end if;
Rewrite (N, New_N);
@@ -1409,10 +1409,10 @@ package body Sem_Ch3 is
begin
Decl :=
Make_Subtype_Declaration (Loc,
- Defining_Identifier => Nam,
- Subtype_Indication =>
+ Defining_Identifier => Nam,
+ Null_Exclusion_Present => True,
+ Subtype_Indication =>
New_Occurrence_Of (Entity (S), Loc));
- Set_Null_Exclusion_Present (Decl);
Insert_Before (Parent (Def), Decl);
Analyze (Decl);
Set_Entity (S, Nam);
@@ -12191,11 +12191,10 @@ package body Sem_Ch3 is
else
Type_Def :=
Make_Access_To_Object_Definition (Loc,
+ All_Present => All_Present (Access_Def),
+ Constant_Present => Constant_Present (Access_Def),
Subtype_Indication =>
- Relocate_Node (Subtype_Mark (Access_Def)));
-
- Set_Constant_Present (Type_Def, Constant_Present (Access_Def));
- Set_All_Present (Type_Def, All_Present (Access_Def));
+ Relocate_Node (Subtype_Mark (Access_Def)));
end if;
Set_Null_Exclusion_Present