-- (protecting test only needed if not at library level)
-- exceptF : aliased System.Atomic_Operations.Test_And_Set.
- -- .Test_And_Set_Flag := 0; -- static data
+ -- .Test_And_Set_Flag; -- static data
-- if not Atomic_Test_And_Set (exceptF) then
-- Register_Exception (except'Unrestricted_Access);
-- end if;
Defining_Identifier => Flag_Id,
Aliased_Present => True,
Object_Definition =>
- New_Occurrence_Of (RTE (RE_Test_And_Set_Flag), Loc),
- Expression =>
- Make_Integer_Literal (Loc, 0));
+ New_Occurrence_Of (RTE (RE_Test_And_Set_Flag), Loc));
else
Flag_Decl :=
Make_Object_Declaration (Loc,