decl.c (gnat_to_gnu_entity): For a subtype with discriminant constraints...
authorOlivier Hainque <hainque@adacore.com>
Wed, 12 Sep 2007 10:49:56 +0000 (10:49 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Wed, 12 Sep 2007 10:49:56 +0000 (10:49 +0000)
commit09528ed9bf63847d9b49758a315737ace1d260f7
tree5543744f197541b0fb5030e363961717337de155
parent7ab886543206b714b7e90e447446c0128d7638cb
decl.c (gnat_to_gnu_entity): For a subtype with discriminant constraints...

2007-09-12  Olivier Hainque  <hainque@adacore.com>

ada/
* decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
with discriminant constraints, generalize the code for BIT_FIELDs
to PACKED fields of constant size and propagate DECL_PACKED.

testsuite/
* gnat.dg/packed_subtype.adb: New test.

From-SVN: r128425
gcc/ada/ChangeLog
gcc/ada/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/packed_subtype.adb [new file with mode: 0644]