diff options
author | Marek Polacek <polacek@redhat.com> | 2014-04-25 10:49:56 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2014-04-25 10:49:56 +0000 |
commit | 34cf811f64dbdc4eb9934bd026998357463b05b9 (patch) | |
tree | f4d8a50111777846844df804a7eadd99ced2527f /gcc/c/c-tree.h | |
parent | b357d40d0a22b6a60ac6b8b08681f096a4ef7da0 (diff) | |
download | gcc-34cf811f64dbdc4eb9934bd026998357463b05b9.zip gcc-34cf811f64dbdc4eb9934bd026998357463b05b9.tar.gz gcc-34cf811f64dbdc4eb9934bd026998357463b05b9.tar.bz2 |
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
Diffstat (limited to 'gcc/c/c-tree.h')
-rw-r--r-- | gcc/c/c-tree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c/c-tree.h b/gcc/c/c-tree.h index 85df885..53768d6 100644 --- a/gcc/c/c-tree.h +++ b/gcc/c/c-tree.h @@ -612,7 +612,8 @@ extern void push_init_level (int, struct obstack *); extern struct c_expr pop_init_level (int, struct obstack *); extern void set_init_index (tree, tree, struct obstack *); extern void set_init_label (tree, struct obstack *); -extern void process_init_element (struct c_expr, bool, struct obstack *); +extern void process_init_element (location_t, struct c_expr, bool, + struct obstack *); extern tree build_compound_literal (location_t, tree, tree, bool); extern void check_compound_literal_type (location_t, struct c_type_name *); extern tree c_start_case (location_t, location_t, tree); |