diff options
author | Martin Sebor <msebor@redhat.com> | 2020-04-21 10:59:24 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2020-04-21 11:11:06 -0600 |
commit | 3942060c4b3168307b9e2870d81e7ca15b49760a (patch) | |
tree | 63775e1c15a45fc845647576c47d8e22cd3a4620 /libphobos/configure.ac | |
parent | fb22faf48f6eb518932f24005f8606e5f19a7304 (diff) |
PR middle-end/94647 - bogus -Warray-bounds on strncpy into a larger member array from a smaller array
gcc/ChangeLog:
PR middle-end/94647
* gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Correct
the computation of the lower bound of the source access size.
(builtin_access::generic_overlap): Remove a hack for setting ranges
of overlap offsets.
gcc/testsuite/ChangeLog:
PR middle-end/94647
* c-c++-common/Warray-bounds-2.c: Adjust a test case and add a new one.
* c-c++-common/Warray-bounds-3.c: Add tests for missing warnings.
* c-c++-common/Wrestrict.c: Invert bounds in printed ranges.
* gcc.dg/Warray-bounds-59.c: New test.
* gcc.dg/Wrestrict-10.c: Add a missing warning.
* gcc.dg/Wrestrict-5.c: Adjust text of expected warning.
* gcc.dg/Wrestrict-6.c: Expect to see a range of overlap offsets.
Diffstat (limited to 'libphobos/configure.ac')
0 files changed, 0 insertions, 0 deletions