re PR c/60114 (Incorrect column number for -pedantic and -Wconversion)
authorMarek Polacek <polacek@redhat.com>
Fri, 25 Apr 2014 10:49:56 +0000 (10:49 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 25 Apr 2014 10:49:56 +0000 (10:49 +0000)
commit34cf811f64dbdc4eb9934bd026998357463b05b9
treef4d8a50111777846844df804a7eadd99ced2527f
parentb357d40d0a22b6a60ac6b8b08681f096a4ef7da0
re PR c/60114 (Incorrect column number for -pedantic and -Wconversion)

PR c/60114
c/
* c-parser.c (c_parser_initelt): Pass input_location to
process_init_element.
(c_parser_initval): Pass loc to process_init_element.
* c-tree.h (process_init_element): Adjust declaration.
* c-typeck.c (push_init_level): Pass input_location to
process_init_element.
(pop_init_level): Likewise.
(set_designator): Likewise.
(output_init_element): Add location_t parameter.  Pass loc to
digest_init.
(output_pending_init_elements): Pass input_location to
output_init_element.
(process_init_element): Add location_t parameter.  Pass loc to
output_init_element.
testsuite/
* gcc.dg/pr60114.c: New test.

From-SVN: r209794
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/c/c-tree.h
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr60114.c [new file with mode: 0644]