This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/84228] Bogus -Wstringop-truncation warning with -g
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Feb 2018 13:26:26 +0000
- Subject: [Bug tree-optimization/84228] Bogus -Wstringop-truncation warning with -g
- Auto-submitted: auto-generated
- References: <bug-84228-4@http.gcc.gnu.org/bugzilla/>
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