r262110 - in /trunk/gcc: ChangeLog gimple-fold....

msebor@gcc.gnu.org msebor@gcc.gnu.org
Mon Jun 25 20:33:00 GMT 2018


Author: msebor
Date: Mon Jun 25 20:33:28 2018
New Revision: 262110

URL: https://gcc.gnu.org/viewcvs?rev=262110&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/gcc.dg/Wstringop-truncation-4.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-fold.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-strlen.c



More information about the Gcc-cvs mailing list