fold-const.c (fold): Rewrite optimization to transform "foo++ == const" into "++foo...
authorRoger Sayle <roger@eyesopen.com>
Sun, 7 Mar 2004 14:45:42 +0000 (14:45 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 7 Mar 2004 14:45:42 +0000 (14:45 +0000)
commit350f4ea897ebddd78030dbb18e4876deac235490
treec066b1f921c1765205dcabe6946ec95358650be6
parent688556b9a734e54128f31dc0d56b26a7f5eb766f
fold-const.c (fold): Rewrite optimization to transform "foo++ == const" into "++foo == const+incr".

* fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
"foo++ == const" into "++foo == const+incr".

* gcc.c-torture/execute/20040307-1.c: New test case.

From-SVN: r79064
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20040307-1.c [new file with mode: 0644]