[Bug tree-optimization/84228] Bogus -Wstringop-truncation warning with -g
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 6 13:26:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84228
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Feb 6 13:25:54 2018
New Revision: 257411
URL: https://gcc.gnu.org/viewcvs?rev=257411&root=gcc&view=rev
Log:
PR tree-optimization/84228
* tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Skip debug statements.
* c-c++-common/Wstringop-truncation-3.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/Wstringop-truncation-3.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-strlen.c
More information about the Gcc-bugs
mailing list