diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2019-01-22 17:56:02 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@gcc.gnu.org> | 2019-01-22 17:56:02 +0000 |
commit | 43646ce3e010e02f4c9252bde6032f233b341245 (patch) | |
tree | 6c0bf94fc846c397921e236d689a06cc36b8dbbd /gcc/gimplify.c | |
parent | df69e824488337a4a85f8a4893e0f0081f45cd72 (diff) | |
download | gcc-43646ce3e010e02f4c9252bde6032f233b341245.zip gcc-43646ce3e010e02f4c9252bde6032f233b341245.tar.gz gcc-43646ce3e010e02f4c9252bde6032f233b341245.tar.bz2 |
[arm] Further fixes for PR88469
A bitfield that is exactly the same size as an integral type and
naturally aligned will have DECL_BIT_FIELD cleared. So we need to
check DECL_BIT_FIELD_TYPE to be sure whether or not the underlying
type was declared with a bitfield declaration.
I've also added a test for bitfields that are based on overaligned types.
PR target/88469
gcc:
* config/arm/arm.c (arm_needs_double_word_align): Check
DECL_BIT_FIELD_TYPE.
gcc/testsuite:
* gcc.target/arm/aapcs/bitfield2.c: New test.
* gcc.target/arm/aapcs/bitfield3.c: New test.
From-SVN: r268160
Diffstat (limited to 'gcc/gimplify.c')
0 files changed, 0 insertions, 0 deletions