]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/typeck.c
Rolled back the following changes made in revision 134865:
authorSimon Baldwin <simonb@google.com>
Fri, 2 May 2008 20:01:31 +0000 (20:01 +0000)
committerSimon Baldwin <simonb@gcc.gnu.org>
Fri, 2 May 2008 20:01:31 +0000 (20:01 +0000)
commite4d355154880463416ba21be979aa77654d727a0
tree7a9abc71059af57af9a976cfa19589fee9e462be
parentbb1418c1b43a95548515bffb8d4a54a173f2a49d
Rolled back the following changes made in revision 134865:

        * c-common.h (warn_array_subscript_range): New function.
        * c-common.c (warn_array_subscript_range): Ditto.
        * tree-vrp.c (check_array_ref): Corrected code to agree with
        comment, ignoring only arrays of size 0 or size 1.
        * c-typeck.c (build_array_ref): Call warn_array_subscript_range.

        * testsuite/gcc.dg/Warray-bounds.c: Updated for frontend warnings,
        additional tests for arrays of size 0 and size 1.
        * testsuite/g++.dg/warn/Warray-bounds.c: Ditto.
        * testsuite/gcc.dg/Warray-bounds-noopt.c: New testcase.
        * testsuite/g++.dg/warn/Warray-bounds-noopt.c: Ditto.

        * typeck.c (build_array_ref): Call warn_array_subscript_range.

From-SVN: r134889
13 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Warray-bounds-noopt.C [deleted file]
gcc/testsuite/g++.dg/warn/Warray-bounds.C
gcc/testsuite/gcc.dg/Warray-bounds-noopt.c [deleted file]
gcc/testsuite/gcc.dg/Warray-bounds.c
gcc/tree-vrp.c
This page took 0.071258 seconds and 5 git commands to generate.