]> gcc.gnu.org Git - gcc.git/commit
c-tree.h (struct c_declarator): New id_loc field.
authorPer Bothner <per@bothner.com>
Sat, 12 Mar 2005 06:37:46 +0000 (22:37 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Sat, 12 Mar 2005 06:37:46 +0000 (22:37 -0800)
commit6037d88d58ffcacc4ee354f4300910589dc5ce47
tree65b4a8dab5e3ade6d18469d0c871b15a2a066e5a
parent210e185272bc34731909e0a53fb982d3ae434516
c-tree.h (struct c_declarator): New id_loc field.

* c-tree.h (struct c_declarator): New id_loc field.
* c-pragma.h (c_lex_with_flags): Take position reference.
* c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
(c_lex): Pass dummy location to c_lex_with_flags.
* c-parser.c (c_lex_one_token): Set c_token's location using
c_lex_with_flags, instead of input_location, which might be "ahead".
(c_parser_direct_declarator): Set declarator's id_loc from
c_token's id_loc.
* c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
declarator's id_loc, rather than probably-imprecise input_location.
(build_id_declarator): Initialize c_declarator's id_loc field.

From-SVN: r96329
gcc/ChangeLog
gcc/c-decl.c
gcc/c-lex.c
gcc/c-parser.c
gcc/c-pragma.h
gcc/c-tree.h
This page took 0.060885 seconds and 5 git commands to generate.