OSDN Git Service

2012-01-03 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jan 2012 08:59:21 +0000 (08:59 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jan 2012 08:59:21 +0000 (08:59 +0000)
commitc8d7e3b93edef5f2e30ee4f1aac9251d7372722f
treecce39e915f0c8795b8736c761af35b64f69fe9a8
parent87f78f877ac4bb19c97c922f3afee507648b0ed9
2012-01-03  Richard Guenther  <rguenther@suse.de>

PR middle-end/51730
* fold-const.c (fold_comparison): Properly canonicalize
tree offset and HOST_WIDE_INT bit position.

* gcc.dg/fold-compare-6.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182830 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-compare-6.c [new file with mode: 0644]