]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/ChangeLog
re PR c/60257 (Incorrect column number and confusing message in -Woverride-init)
authorMarek Polacek <polacek@redhat.com>
Thu, 1 May 2014 07:35:05 +0000 (07:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 1 May 2014 07:35:05 +0000 (07:35 +0000)
commit96b40f8d4c5288483a72676796154b82f92d6c8c
treef5de2e6b0ec86ec0665eeb06f19f3d927f3e9f63
parent32e007683d8eeb92afe99367049b28d27845dfc0
re PR c/60257 (Incorrect column number and confusing message in -Woverride-init)

PR c/60257
* c-typeck.c (warning_init): Add location_t parameter.  Call
warning_at instead of warning.
(push_init_level): Pass input_location to warning_init.
(add_pending_init): Add location_t parameter.  Pass loc to
warning_init.
(set_nonincremental_init): Pass input_location to add_pending_init.
(set_nonincremental_init_from_string): Likewise.
(output_init_element): Pass loc to warning_init and to
add_pending_init.

* gcc.dg/pr60257.c: New test.

From-SVN: r209974
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr60257.c [new file with mode: 0644]