* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Constify
commit55da6ad7402cca364739d96c92027c3d7a8c7f53
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 May 2013 08:27:55 +0000 (24 08:27 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 May 2013 08:27:55 +0000 (24 08:27 +0000)
treeaff76747988831bf15f6b6d874837f6db04db488
parentfe081106200836364b24d057a3e11baeb82ca3ff
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Constify
a handful of local variables.
For a derived untagged type that renames discriminants, change the type
of the stored discriminants to a subtype with the bounds of the type
of the visible discriminants.
(build_subst_list): Rename local variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199279 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/derived_type4.adb [new file with mode: 0644]