PR tree-optimization/84228
commitfac38b8b428935f6b8075dea35c6bd7752b593d8
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Feb 2018 13:25:54 +0000 (6 13:25 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Feb 2018 13:25:54 +0000 (6 13:25 +0000)
tree82838438bcb773f3e16031fadacb41b656726791
parentaa1259b9495f0b2c2395435bd3f5c24fb5b76388
PR tree-optimization/84228
* tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Skip debug statements.

* c-c++-common/Wstringop-truncation-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257411 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wstringop-truncation-3.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c