Such output was unnecessary, and in some cases harmful.
In particular, we generate renamings in the expanded
code for protected types, with internally-generated names,
which could be confusing to the user. In addition, in the
JSON output (-gnatR2j), these generated renamings could have
duplicate source locatations, which confused SPARK.
gcc/ada/ChangeLog:
* repinfo.adb (List_Entities):
Disable output in case of object renamings.
List_Type_Info (E);
end if;
- -- Note that formals are not annotated so we skip them here
+ -- Formals and renamings are not annotated, so we skip them
+ -- here.
elsif Ekind (E) in E_Constant
| E_Loop_Parameter
| E_Variable
+ and then Nkind (Parent (E)) /= N_Object_Renaming_Declaration
then
if List_Representation_Info >= 2 then
List_Object_Info (E);