]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-ssa-strlen.c
re PR tree-optimization/84228 (Bogus -Wstringop-truncation warning with -g)
authorMarek Polacek <polacek@redhat.com>
Tue, 6 Feb 2018 13:25:54 +0000 (13:25 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 6 Feb 2018 13:25:54 +0000 (13:25 +0000)
commitb25e5572f1262ed0ec4beea19eec15ac28fdf8ed
tree82838438bcb773f3e16031fadacb41b656726791
parentd10ac88059a7574f60e25af7b8f1022b25100fdd
re PR tree-optimization/84228 (Bogus -Wstringop-truncation warning with -g)

PR tree-optimization/84228
* tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Skip debug statements.

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

From-SVN: r257411
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wstringop-truncation-3.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c