re PR tree-optimization/48022 (-Wstrict-overflow warning on code that doesn't have...
authorJakub Jelinek <jakub@redhat.com>
Tue, 8 Mar 2011 10:43:10 +0000 (11:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 8 Mar 2011 10:43:10 +0000 (11:43 +0100)
commit32bd240907e86af72aac473508bd36349dcfd183
tree389f894dd1309baa2332849fcc5bad7843403dd4
parent93dd46fb792863cd5d7893867d93e7f0ea69322c
re PR tree-optimization/48022 (-Wstrict-overflow warning on code that doesn't have overflows)

PR tree-optimization/48022
* fold-const.c (fold_comparison): Don't call fold_overflow_warning
for EQ/NE_EXPR.

* gcc.dg/pr48022-1.c: New test.
* gcc.dg/pr48022-2.c: New test.

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