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/83075] [8 Regression] Invalid strncpy optimization


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83075

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Dec  7 23:55:18 2017
New Revision: 255485

URL: https://gcc.gnu.org/viewcvs?rev=255485&root=gcc&view=rev
Log:
        PR tree-optimization/83075
        * gcc.dg/tree-ssa/strncpy-2.c: Use size_t instead of unsigned, add
        separate function with noipa attribute to also verify behavior when
        optimizers don't know the sizes and aliasing, verify resulting sizes
        and array content.  Add -Wstringop-overflow to dg-options.
        * gcc.dg/tree-ssa/strncat.c: Likewise.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/tree-ssa/strncat.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/strncpy-2.c

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