r274976 - in /trunk/gcc: ChangeLog gimple-ssa-s...

msebor@gcc.gnu.org msebor@gcc.gnu.org
Tue Aug 27 23:31:00 GMT 2019


Author: msebor
Date: Tue Aug 27 23:31:44 2019
New Revision: 274976

URL: https://gcc.gnu.org/viewcvs?rev=274976&root=gcc&view=rev
Log:
PR tree-optimization/91567 - Spurious -Wformat-overflow warnings building glibc (32-bit only)

gcc/ChangeLog:

	PR tree-optimization/91567
	* gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
	of unknown strings.
	* vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
	to PTRDIFF_MAX - 2.

gcc/testsuite/ChangeLog:

	PR tree-optimization/91567
	* gcc.dg/tree-ssa/builtin-snprintf-6.c: Xfail a subset of assertions
	on targets other than x86_64 to work around PR 83543.
	* gcc.dg/tree-ssa/builtin-sprintf-warn-22.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-22.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-ssa-sprintf.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-snprintf-6.c
    trunk/gcc/vr-values.c



More information about the Gcc-cvs mailing list