re PR tree-optimization/63445 (request: make -Wstrict-overflow avoid a class of false...
authorRichard Biener <rguenther@suse.de>
Thu, 9 Oct 2014 08:20:53 +0000 (08:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 9 Oct 2014 08:20:53 +0000 (08:20 +0000)
commitee68591e69621b4fdbbd925044b66b6147800cf9
treebb758a1c6c30688ffeabdbe9b62736d35f09b005
parent9d55066c88b4c276a969ea2b86614c7bd034f212
re PR tree-optimization/63445 (request: make -Wstrict-overflow avoid a class of false positives)

2014-10-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/63445
* tree-vrp.c (simplify_cond_using_ranges): Only warn about
overflow for non-equality compares.

* gcc.dg/Wstrict-overflow-26.c: New testcase.

From-SVN: r216028
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wstrict-overflow-26.c [new file with mode: 0644]
gcc/tree-vrp.c