decl.c (components_to_record): Set a name on the type created for the REP part, if...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 28 May 2019 07:36:02 +0000 (07:36 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 28 May 2019 07:36:02 +0000 (07:36 +0000)
commitf65f371bcff00263f9e870d546b580caebd953b3
treec9d1a1e2186cd885fe778b09942d0358616a012e
parente6ca6782acfa8b126c6abb6bcd9026572217525d
decl.c (components_to_record): Set a name on the type created for the REP part, if any.

* gcc-interface/decl.c (components_to_record): Set a name on the type
created for the REP part, if any.
* gcc-interface/utils.c (finish_record_type): Only take the maximum
when merging sizes for a variant part at offset 0.
(merge_sizes): Rename has_rep parameter into max.

From-SVN: r271681
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/utils.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/discr5.ads [new file with mode: 0644]