2006-04-05 Richard Guenther <rguenther@suse.de>
PR tree-optimization/26763 * fold-const.c (fold_comparison): Move folding of PTR + CST CMP PTR + CST ... (fold_binary): ... here. Fold only for EQ_EXPR and NE_EXPR. * gcc.dg/torture/pr26763-1.c: New testcase. * gcc.dg/torture/pr26763-2.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112697 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/ChangeLog 7 additions, 0 deletionsgcc/ChangeLog
- gcc/fold-const.c 28 additions, 27 deletionsgcc/fold-const.c
- gcc/testsuite/ChangeLog 6 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/torture/pr26763-1.c 18 additions, 0 deletionsgcc/testsuite/gcc.dg/torture/pr26763-1.c
- gcc/testsuite/gcc.dg/torture/pr26763-2.c 18 additions, 0 deletionsgcc/testsuite/gcc.dg/torture/pr26763-2.c
Loading
Please register or sign in to comment