re PR middle-end/30951 (Does not fold x + CST == x and x + CST != x)
authorRichard Guenther <rguenther@suse.de>
Sat, 24 Feb 2007 19:55:47 +0000 (19:55 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 24 Feb 2007 19:55:47 +0000 (19:55 +0000)
commita31498d293913e1006bd43e67884983a02471d1a
tree519e3bd036acaa7e2d9abb7b298d90d27eb168d5
parent1e6e2c303b65dc3aab3a3bd8e63416a585de88b2
re PR middle-end/30951 (Does not fold  x + CST == x and x + CST != x)

2007-02-24  Richard Guenther  <rguenther@suse.de>

PR middle-end/30951
* fold-const.c (fold_binary): Fold x +- CST op x for
EQ_EXPR and NE_EXPR.

* gcc.dg/pr30951.c: New testcase.

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