expmed.c (store_bit_field): Assert that BITREGION_START is a multiple of a unit befor...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 27 Mar 2012 10:35:55 +0000 (10:35 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 27 Mar 2012 10:35:55 +0000 (10:35 +0000)
commita59b038cc8edf2e34d5c9544a8805bf9b3450709
treeafcd36162228e58e77087033fa077738a70aad88
parentd102ab714fbf00fbbf8b0c2e022a315b85c5e22a
expmed.c (store_bit_field): Assert that BITREGION_START is a multiple of a unit before computing the offset...

* expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
of a unit before computing the offset in units.
* expr.c (get_bit_range): Return the null range if the enclosing record
is part of a larger bit field.

From-SVN: r185857
gcc/ChangeLog
gcc/expmed.c
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/pack17.adb [new file with mode: 0644]