OSDN Git Service

* exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Apr 2010 11:38:06 +0000 (11:38 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:17:21 +0000 (14:17 +0900)
commita3932641fbaa7a188fd26cacf7ecaf20a9b75f0c
treeffb57b8256b71eba7e183a073022833d006325a1
parent0c8b87d3adddeca8a88360413f301fcc18fbc2e6
* exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
if the size is small enough.  Propagate the alignment if there is an
alignment clause on the original array type.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
Deal with under-aligned packed array types.  Copy the size onto the
justified modular type and don't lay it out again.  Likewise for the
padding type built for other under-aligned subtypes.
* gcc-interface/utils.c (finish_record_type): Do not set a default mode
on the type.

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