]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/30137 (Missed folding of pointer comparison)
authorRichard Guenther <rguenther@suse.de>
Sun, 31 Dec 2006 17:27:35 +0000 (17:27 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 31 Dec 2006 17:27:35 +0000 (17:27 +0000)
commite015f578884bce00d4fe8d7b8d14b94b11879ba3
tree37fae3dae27d12d89d0e81b7873ac69ef8dd0b39
parent870aa1ebe0d3e05912f763ece1ed4491282d34e2
re PR tree-optimization/30137 (Missed folding of pointer comparison)

2006-12-31  Richard Guenther  <rguenther@suse.de>

PR middle-end/30137
* fold-const.c (fold_comparison): Fold comparison of addresses
of components.

* testsuite/gcc.dg/pr30137-1.c: New testcase.
* testsuite/gcc.dg/pr30137-2.c: Likewise.

From-SVN: r120301
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr30137-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr30137-2.c [new file with mode: 0644]