diff options
author | Joseph Myers <joseph@codesourcery.com> | 2004-11-20 20:31:52 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2004-11-20 20:31:52 +0000 |
commit | a4ab7973cfe5dfb4b191f795adaaddad831d7657 (patch) | |
tree | 744160b47cb98a4ccacd021c089dc864bfb2cedd /gcc/lambda-code.c | |
parent | 40806b8b8f7a4d2ba6b926300f6a0dbcf862eb9d (diff) | |
download | gcc-a4ab7973cfe5dfb4b191f795adaaddad831d7657.zip gcc-a4ab7973cfe5dfb4b191f795adaaddad831d7657.tar.gz gcc-a4ab7973cfe5dfb4b191f795adaaddad831d7657.tar.bz2 |
c-typeck.c (build_array_ref): Don't check for index == 0.
* c-typeck.c (build_array_ref): Don't check for index == 0. Make
checks for neither argument being an array or pointer (swapping
the arguments if necessary), the array argument being a pointer to
or array of functions and for -Wchar-subscripts warnings upfront.
testsuite:
* gcc.dg/Wchar-subscripts-1.c, gcc.dg/array-8.c: New tests.
* gcc.dg/pointer-arith-1.c, gcc.dg/pointer-arith-2.c,
gcc.dg/pointer-arith-3.c, gcc.dg/pointer-arith-4.c: Update
expected diagnostics.
From-SVN: r90969
Diffstat (limited to 'gcc/lambda-code.c')
0 files changed, 0 insertions, 0 deletions