stor-layout.c (layout_decl): Use the field's type to determine the mode and keep...
authorJie Zhang <jie@codesourcery.com>
Tue, 26 Oct 2010 03:22:49 +0000 (03:22 +0000)
committerJie Zhang <jiez@gcc.gnu.org>
Tue, 26 Oct 2010 03:22:49 +0000 (03:22 +0000)
commitf5c88dbfe7040583158ad45e4ef2801401a2732d
treee3deba847e33f104b4175dd8a3946b33f33a08d4
parent7021d5df0a0c762b092f88d8274089fb12acc6ac
stor-layout.c (layout_decl): Use the field's type to determine the mode and keep DECL_BIT_FIELD for a...

* stor-layout.c (layout_decl): Use the field's type to
determine the mode and keep DECL_BIT_FIELD for a volatile
bit-field.
* config/arm/arm.c (arm_override_options): Default to
-fstrict-volatile-bitfields.

testsuite/
* gcc.target/arm/volatile-bitfields-1.c: New test.
* gcc.target/arm/volatile-bitfields-2.c: New test.
* gcc.target/arm/volatile-bitfields-3.c: New test.

From-SVN: r165934
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/stor-layout.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/volatile-bitfields-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/volatile-bitfields-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/volatile-bitfields-3.c [new file with mode: 0644]