diff options
author | Martin Sebor <msebor@redhat.com> | 2018-06-25 20:33:28 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2018-06-25 14:33:28 -0600 |
commit | eec5f615cbad2de5ff10fbaa8c92f68cc5c6be00 (patch) | |
tree | 6d97fc1ae9f1316ba96cf9579500332267bb075a /libada | |
parent | 2bcd87a7b5bf793a00e99a5d7fdef4277afa7dc6 (diff) | |
download | gcc-eec5f615cbad2de5ff10fbaa8c92f68cc5c6be00.zip gcc-eec5f615cbad2de5ff10fbaa8c92f68cc5c6be00.tar.gz gcc-eec5f615cbad2de5ff10fbaa8c92f68cc5c6be00.tar.bz2 |
PR tree-optimization/85700 - Spurious -Wstringop-truncation warning with strncat
gcc/ChangeLog:
PR tree-optimization/85700
* gimple-fold.c (gimple_fold_builtin_strncat): Adjust comment.
* tree-ssa-strlen.c (is_strlen_related_p): Handle integer subtraction.
(maybe_diag_stxncpy_trunc): Distinguish strncat from strncpy.
gcc/testsuite/ChangeLog:
PR tree-optimization/85700
* gcc.dg/Wstringop-truncation-4.c: New test.
From-SVN: r262110
Diffstat (limited to 'libada')
0 files changed, 0 insertions, 0 deletions