expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR expansion result...
authorRichard Guenther <rguenther@suse.de>
Mon, 18 Jul 2011 13:39:28 +0000 (13:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 18 Jul 2011 13:39:28 +0000 (13:39 +0000)
commite002c7cbaff40445b05da1d5213cb8a08422fb9e
tree4a67ef0edc4087bb16956e1e1b5c1419eaff28d5
parentc1f5148401fd1afdc30a3b6d34257186376b98a6
expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR expansion result to bitfield precision if...

2011-07-18  Richard Guenther  <rguenther@suse.de>

* expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
expansion result to bitfield precision if required.

* gcc.dg/torture/20110718-1.c: New testcase.

From-SVN: r176398
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/20110718-1.c [new file with mode: 0644]