aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2020-02-12 13:53:49 -0700
committerMartin Sebor <msebor@redhat.com>2020-02-12 13:53:49 -0700
commit0a0de9636d29a378961e4c98a129421229918052 (patch)
tree72425aa1d84b0615bc2cade753c1030ec7aff55e /gcc/fold-const.c
parent37462a131c528d0980915d98567361aa9396b030 (diff)
downloadgcc-0a0de9636d29a378961e4c98a129421229918052.zip
gcc-0a0de9636d29a378961e4c98a129421229918052.tar.gz
gcc-0a0de9636d29a378961e4c98a129421229918052.tar.bz2
PR middle-end/93646 - confusing -Wstringop-truncation on strncat where -Wstringop-overflow is expected
gcc/ChangeLog: PR middle-end/93646 * tree-ssa-strlen.c (handle_builtin_stxncpy): Rename... (handle_builtin_stxncpy_strncat): ...to this. Change first argument. Issue only -Wstringop-overflow strncat, never -Wstringop-truncation. (strlen_check_and_optimize_call): Adjust callee name. gcc/testsuite/ChangeLog: PR middle-end/93646 * gcc.dg/Wstringop-overflow-31.c: New test.
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions