decl.c (gnat_to_gnu_entity): Constify a handful of local variables.
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 24 May 2013 08:27:55 +0000 (08:27 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 24 May 2013 08:27:55 +0000 (08:27 +0000)
commit908ba941c3abc6b8ed507871a9051bd5b9cde98d
treeaff76747988831bf15f6b6d874837f6db04db488
parentb17c024fa920895a860c675836e98fc49c01e9ce
decl.c (gnat_to_gnu_entity): Constify a handful of local variables.

* 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.

From-SVN: r199279
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/derived_type4.adb [new file with mode: 0644]