]> gcc.gnu.org Git - gcc.git/commit - gcc/c-family/ChangeLog
re PR c/64423 (Incorrect column number of -Wchar-subscripts)
authorMarek Polacek <polacek@redhat.com>
Mon, 5 Jan 2015 12:03:57 +0000 (12:03 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 5 Jan 2015 12:03:57 +0000 (12:03 +0000)
commit5bd012f83bcedad0e80280ffccaa0b5297d9bf98
tree75038e2677f4f5b9b1ff57bf2ea4050b56336f91
parent2c5103ffdd6542ac1f9a110f144034d9ec70488c
re PR c/64423 (Incorrect column number of -Wchar-subscripts)

PR c/64423
c-family/
* c-common.c (warn_array_subscript_with_type_char): Add location_t
parameter.  Use it.
* c-common.h (warn_array_subscript_with_type_char): Update
declaration.
c/
* c-typeck.c (build_array_ref): Pass loc down to
warn_array_subscript_with_type_char.
cp/
* typeck.c (cp_build_array_ref): Pass loc down to
warn_array_subscript_with_type_char.
testsuite/
* gcc.dg/pr64423.c: New test.

From-SVN: r219186
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr64423.c [new file with mode: 0644]
This page took 0.060186 seconds and 5 git commands to generate.