This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/84228] Bogus -Wstringop-truncation warning with -g


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]