2011-07-18 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Jul 2011 13:39:28 +0000 (13:39 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Jul 2011 13:39:28 +0000 (13:39 +0000)
commitf1c44a442d9936361258d5671e983dec8f05530c
tree4a67ef0edc4087bb16956e1e1b5c1419eaff28d5
parente9a8fef62dcefbb82bc6967fa3ac88dda81831f2
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176398 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/20110718-1.c [new file with mode: 0644]