[Ada] Fix elaboration of record with 1-element dynamic array
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 11 Dec 2018 11:11:31 +0000 (11:11 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 11 Dec 2018 11:11:31 +0000 (11:11 +0000)
commit6186a6ef3c5d54134e68a0f54ad736e405876269
treeb70f11386b52bb051ba0a8178d21ea4101368992
parentaf3ded0832bd13e8f00fc62d96a367635398d1d6
[Ada] Fix elaboration of record with 1-element dynamic array

2018-12-11  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* einfo.ads (Is_Bit_Packed_Array): Fix values of component size.
(Is_Packed): Likewise.
* gcc-interface/utils.c (convert): Do not extract the value of a
justified modular type if the destination type is a regular
array.
* gcc-interface/decl.c (gnat_to_gnu_component_type): Pass
TYPE_DECL to validate_size wherever the array has packed
components.

From-SVN: r267005
gcc/ada/ChangeLog
gcc/ada/einfo.ads
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/utils.c