]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix elaboration of record with 1-element dynamic array
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Dec 2018 11:11:31 +0000 (11:11 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Dec 2018 11:11:31 +0000 (11:11 +0000)
commit12202386a4e107817b3006fe29583087d6f9010a
treeb70f11386b52bb051ba0a8178d21ea4101368992
parent806162556894c371b30371faee558af724753838
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267005 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/einfo.ads
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/utils.c