gcc/ada/
* sem_ch13.adb (Analyze_Aspect_Specifications): Simplify code
for aspect Priority.
* sem_prag.adb (Analyze_Pragma): Simplify code for pragma
Priority.
-- System.Tasking, but this package does not trigger the
-- required initialization of the run-time library.
- declare
- Discard : Entity_Id;
- begin
- if Restricted_Profile then
- Discard := RTE (RE_Activate_Restricted_Tasks);
- else
- Discard := RTE (RE_Activate_Tasks);
- end if;
- end;
+ if Restricted_Profile then
+ Discard_Node (RTE (RE_Activate_Restricted_Tasks));
+ else
+ Discard_Node (RTE (RE_Activate_Tasks));
+ end if;
-- Handling for these aspects in subprograms is complete
-- package does not trigger the required initialization of the
-- run-time library.
- declare
- Discard : Entity_Id;
- pragma Warnings (Off, Discard);
- begin
- if Restricted_Profile then
- Discard := RTE (RE_Activate_Restricted_Tasks);
- else
- Discard := RTE (RE_Activate_Tasks);
- end if;
- end;
+ if Restricted_Profile then
+ Discard_Node (RTE (RE_Activate_Restricted_Tasks));
+ else
+ Discard_Node (RTE (RE_Activate_Tasks));
+ end if;
-- Task or Protected, must be of type Integer