https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82588

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
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

Reply via email to