Unlike RTE, RTU_Entity alone does not cause the unit to be loaded.
gcc/ada/ChangeLog:
* exp_ch7.adb (Shift_Address_For_Descriptor): Add dummy variable
to make sure that System_Storage_Elements is loaded.
Typ : Entity_Id;
Op_Nam : Name_Id) return Node_Id
is
- Loc : constant Source_Ptr := Sloc (Addr);
+ Loc : constant Source_Ptr := Sloc (Addr);
+ Dummy : constant Entity_Id := RTE (RE_Storage_Offset);
+ -- Make sure System_Storage_Elements is loaded for RTU_Entity
begin
-- Generate: