decl.c (choices_to_gnu): Rename parameters.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 17 Jul 2018 10:02:36 +0000 (10:02 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 17 Jul 2018 10:02:36 +0000 (10:02 +0000)
commit8e93ce66b268e7b213d8d11c7f7b08856c4a2162
tree6a1cd47e5fd62c1b5247eb23a9c167ba592ae259
parent10c6ce7884b1d19a9b85ccf64ac74e44eb7e6623
decl.c (choices_to_gnu): Rename parameters.

* gcc-interface/decl.c (choices_to_gnu): Rename parameters.  Deal with
an operand of Character type.  Factor out range generation to the end.
Check that the bounds are literals and convert them to the type of the
operand before building the ranges.
* gcc-interface/utils.c (make_dummy_type): Minor tweak.
(make_packable_type): Propagate TYPE_DEBUG_TYPE.
(maybe_pad_type): Likewise.

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