diff options
author | simonb <simonb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-02 20:01:31 +0000 |
---|---|---|
committer | simonb <simonb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-02 20:01:31 +0000 |
commit | 8e31b4b2f9d28816b80e1134dc718b5e8146f1b8 (patch) | |
tree | 7a9abc71059af57af9a976cfa19589fee9e462be /gcc/tree-gimple.h | |
parent | 875a66b2f9a8edf3b1867ae1a33d0db4cfc6747b (diff) | |
download | gcc-8e31b4b2f9d28816b80e1134dc718b5e8146f1b8.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134889 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-gimple.h')
0 files changed, 0 insertions, 0 deletions