re PR tree-optimization/83296 (missing -Wstringop-overflow due to missing range info...
authorRichard Biener <rguenther@suse.de>
Thu, 7 Dec 2017 13:21:51 +0000 (13:21 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 7 Dec 2017 13:21:51 +0000 (13:21 +0000)
commit5a40ae3c3acf7eaabc9599f5701adbd2f6ec607e
tree123746bec470ee8bada54b15b044d6fccb91166a
parentd78d986bfa059f3ad53c0be027ff8d3200404fec
re PR tree-optimization/83296 (missing -Wstringop-overflow due to missing range info for MAX_EXPR)

2017-12-07  Richard Biener  <rguenther@suse.de>

PR tree-optimization/83296
PR tree-optimization/67769
* tree-ssa-phiopt.c (conditional_replacement): Do not reset
flow sensitive info in an unrelated BB.
(value_replacement): Use reset_flow_sensitive_info.
(minmax_replacement): Reset flow sensitive info on the def
we move.  Do not reset flow sensitive info in the whole BB
we move the stmt to.
(abs_replacement): Likewise.

* g++.dg/warn/Wstringop-overflow-1.C: New testcase.

From-SVN: r255466
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wstringop-overflow-1.C [new file with mode: 0644]
gcc/tree-ssa-phiopt.c