re PR c++/14755 (miscompilation in bitfielded signed integers)
authorJakub Jelinek <jakub@redhat.com>
Thu, 1 Apr 2004 15:50:11 +0000 (17:50 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 1 Apr 2004 15:50:11 +0000 (17:50 +0200)
commit0b612185938e178cce2cb547424e27e7d8deeac7
tree1615e48fce0014662e719f1204572e9e274a295f
parenta150de295117d1e8f76a01180541eff7d0eb380c
re PR c++/14755 (miscompilation in bitfielded signed integers)

PR c++/14755
* fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
"bitfld++ == const" to "++bitfld == const + incr" transformations.

* gcc.c-torture/execute/20040331-1.c: New test.
* gcc.dg/20040331-1.c: New test.

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