gcc/ada/
* sem_attr.adb (Analyze_Attribute): Reuse SPARK_Implicit_Load.
-- See SPARK RM 9(18) for the relevant rule.
if GNATprove_Mode then
- declare
- Unused : Entity_Id;
-
- begin
- case Attr_Id is
- when Attribute_Callable
- | Attribute_Caller
- | Attribute_Count
- | Attribute_Terminated
- =>
- Unused := RTE (RE_Tasking_State);
+ case Attr_Id is
+ when Attribute_Callable
+ | Attribute_Caller
+ | Attribute_Count
+ | Attribute_Terminated
+ =>
+ SPARK_Implicit_Load (RE_Tasking_State);
- when others =>
- null;
- end case;
- end;
+ when others =>
+ null;
+ end case;
end if;
-- All errors raise Bad_Attribute, so that we get out before any further