summaryrefslogtreecommitdiff
path: root/libsanitizer/MERGE
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2021-07-20 13:48:20 -0600
committerMartin Sebor <msebor@redhat.com>2021-07-20 13:50:16 -0600
commit8bf5b49ebd2176b8c535147377381dd07fbdd643 (patch)
tree49d02a88e682cbc77d10e2ba584658f6a26c4bb5 /libsanitizer/MERGE
parent124eaa50e0a34f5f89572c1aa812c50979da58fc (diff)
downloadgcc-8bf5b49ebd2176b8c535147377381dd07fbdd643.tar.gz
Correct stpcpy offset computation for -Warray-bounds et al. [PR101397].
Resolves: PR middle-end/101397 - spurious warning writing to the result of stpcpy minus 1 gcc/ChangeLog: PR middle-end/101397 * builtins.c (gimple_call_return_array): Add argument. Correct offsets for memchr, mempcpy, stpcpy, and stpncpy. (compute_objsize_r): Adjust offset computation for argument returning built-ins. gcc/testsuite/ChangeLog: PR middle-end/101397 * gcc.dg/Warray-bounds-80.c: New test. * gcc.dg/Warray-bounds-81.c: New test. * gcc.dg/Warray-bounds-82.c: New test. * gcc.dg/Warray-bounds-83.c: New test. * gcc.dg/Warray-bounds-84.c: New test. * gcc.dg/Wstringop-overflow-46.c: Adjust expected output.
Diffstat (limited to 'libsanitizer/MERGE')
0 files changed, 0 insertions, 0 deletions