expr.c (expand_expr_real_1): Correctly handle strict volatile bitfield loads smaller...
authorJoey Ye <joey.ye@arm.com>
Mon, 21 Nov 2011 02:16:12 +0000 (02:16 +0000)
committerJoey Ye <jye2@gcc.gnu.org>
Mon, 21 Nov 2011 02:16:12 +0000 (02:16 +0000)
commite5fe4319e726b2b6baf4a31e42faa446eb6d00b4
tree34dbbd53c18e02cc659b9d899a46473dc5ba47e8
parent25a96761979b320209f0b513ad364e5d9e5a05d6
expr.c (expand_expr_real_1): Correctly handle strict volatile bitfield loads smaller than mode size.

2011-11-20  Joey Ye  <joey.ye@arm.com>

* expr.c (expand_expr_real_1): Correctly handle strict volatile
bitfield loads smaller than mode size.

testsuite:

* gcc.dg/volatile-bitfields-1.c: New.

From-SVN: r181549
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/volatile-bitfields-1.c [new file with mode: 0644]