re PR c/51730 (autoconf 2.60 through 2.67 stdbool.h check fails with GCC 4.7)
authorRichard Guenther <rguenther@suse.de>
Tue, 3 Jan 2012 08:59:21 +0000 (08:59 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 3 Jan 2012 08:59:21 +0000 (08:59 +0000)
commit8b3c295192e3886940be529ebd380b093d77fdef
treecce39e915f0c8795b8736c761af35b64f69fe9a8
parent96fda42cb42f8aa502b306f2626227d5d2615919
re PR c/51730 (autoconf 2.60 through 2.67 stdbool.h check fails with GCC 4.7)

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.

From-SVN: r182830
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-compare-6.c [new file with mode: 0644]