Where possible, we can use high-level wrapper routines instead of the
low-level Get_Attribute_Definition_Clause.
Code cleanup; semantics is unaffected.
gcc/ada/
* layout.adb (Layout_Type): Use high-level wrapper routine.
* sem_ch13.adb (Inherit_Delayed_Rep_Aspects): Likewise.
* sem_ch3.adb (Analyze_Object_Declaration): Likewise.
Error_Msg_Uint_1 := RM_Size (E);
Error_Msg_F
("object size is too small, minimum allowed is ^",
- Expression (Get_Attribute_Definition_Clause
- (E, Attribute_Object_Size)));
+ Expression (Object_Size_Clause (E)));
+
end if;
-- Adjust Esize up to RM_Size value
| Aspect_Size
=>
if not Has_Size_Clause (Typ)
- and then
- No (Get_Attribute_Definition_Clause
- (Typ, Attribute_Object_Size))
+ and then No (Object_Size_Clause (Typ))
then
Set_Esize (Typ, Esize (P));
end if;
E := First_Entity (Etype (Id));
while Present (E) loop
if Ekind (E) = E_Entry
- and then Present (Get_Attribute_Definition_Clause
- (E, Attribute_Address))
+ and then Present (Address_Clause (E))
then
Error_Msg_Warn := SPARK_Mode /= On;
Error_Msg_N