2006-06-04 Richard Guenther <rguenther@suse.de>
commitf9ea6ec6c64b5a62a2f57967c0131345c3392348
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Jun 2006 12:59:40 +0000 (4 12:59 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Jun 2006 12:59:40 +0000 (4 12:59 +0000)
tree6ce8c8a0ac7594c99d0fe4bff2ae7f32c2e68e90
parent5929776ec7cd048164d162b2967d1f7fc0415c52
2006-06-04  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/27039
* fold-const.c (fold_comparison): Handle pointer comparison
again for all comparison codes.  Compare offsets in signed
size type.
(fold_binary): Move code from here.

* gcc.dg/tree-ssa/loop-17.c: New testcase.

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