r254830 - in /trunk/gcc: ChangeLog testsuite/Ch...

msebor@gcc.gnu.org msebor@gcc.gnu.org
Thu Nov 16 16:12:00 GMT 2017


Author: msebor
Date: Thu Nov 16 16:12:36 2017
New Revision: 254830

URL: https://gcc.gnu.org/viewcvs?rev=254830&root=gcc&view=rev
Log:
PR tree-optimization/82588 - missing -Warray-bounds on a excessively large index
PR tree-optimization/82583 - missing -Warray-bounds on out-of-bounds inner indic

gcc/ChangeLog:

	PR tree-optimization/82588
	PR tree-optimization/82583
	* tree-vrp.c (check_array_ref): Handle flexible array members,
	string literals, and inner indices.
	(search_for_addr_array): Add detail to diagnostics.

gcc/testsuite/ChangeLog:

	PR tree-optimization/82588
	PR tree-optimization/82583
	* c-c++-common/Warray-bounds.c: New test.
	* gcc.dg/Warray-bounds-11.c: Adjust.
	* gcc.dg/Warray-bounds-22.c: New test.


Added:
    trunk/gcc/testsuite/c-c++-common/Warray-bounds.c
    trunk/gcc/testsuite/gcc.dg/Warray-bounds-22.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/Warray-bounds-11.c
    trunk/gcc/tree-vrp.c



More information about the Gcc-cvs mailing list