Warray-bounds-6.c
604 Bytes
-
re PR tree-optimization/86614 (duplicate -Warray-bounds for a strncpy call with… · 21150aba
re PR tree-optimization/86614 (duplicate -Warray-bounds for a strncpy call with out-of-bounds offset) PR tree-optimization/86614 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Return early if TREE_NO_WARNING is set on ref.ref. * c-c++-common/Warray-bounds-2.c (wrap_strncpy_dstarray_diff_neg, call_strncpy_dstarray_diff_neg): Don't expect late -Warray-bounds warnings, just early ones from FE. Remove dg-prune-output. * c-c++-common/Warray-bounds-6.c: New test. From-SVN: r266403
Jakub Jelinek committed