Conditionally compile support for --enable-mapped_location.
authorPer Bothner <per@bothner.com>
Wed, 30 Jun 2004 18:23:35 +0000 (11:23 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Wed, 30 Jun 2004 18:23:35 +0000 (11:23 -0700)
commit93409b8c457d6b10875aff1931f57a099da88544
treebee4190e15fa75923831305a97d15dbe3638b99e
parent9506ac2be5e52ce7e184be3c52d31421355b7ab4
Conditionally compile support for --enable-mapped_location.

* decl.c (pop_label):  Handle (imperfectly) USE_MAPPED_LOCATION case.
* decl2.c:  If USE_MAPPED_LOCATION, don't do some line number
adjustments - which I don't understand.
* error.c (dump_decl):  Rename "<interrnal>" to "<built-in>".
* error.c:  Use LOCATION_FILE and EXPR_LOCATION macros.
(print_instantiation_partial_context):  Use expand_location.
* decl.c (duplicate_decl):  Use new DECL_IS_BUILTIN macro.
* name-lookup.c:  Likewise.
* lex.c (cxx_init):  Likewise.  Also use BUILTINS_LOCATION.
* name-lookup.c:  Use input_line macro.
* parser.c (cp_lexer_get_preprocessor_token):  Use UNKNOWN_LOCATION.
(cp_parser_statement):  Rename locaal variable statement_locus to
statement_location and use SET_EXPR_LOCATION macro.
* pt.c:  Handle USE_MAPPED_LOCATION case.  Use new macros.
* tree.c (cp_walk_subtrees):  Likewise.

From-SVN: r83923
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/error.c
gcc/cp/lex.c
gcc/cp/name-lookup.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/tree.c