diff options
author | Per Bothner <per@bothner.com> | 2004-06-30 11:23:35 -0700 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2004-06-30 11:23:35 -0700 |
commit | 93409b8c457d6b10875aff1931f57a099da88544 (patch) | |
tree | bee4190e15fa75923831305a97d15dbe3638b99e /gcc/cp/lex.c | |
parent | 9506ac2be5e52ce7e184be3c52d31421355b7ab4 (diff) | |
download | gcc-93409b8c457d6b10875aff1931f57a099da88544.zip gcc-93409b8c457d6b10875aff1931f57a099da88544.tar.gz gcc-93409b8c457d6b10875aff1931f57a099da88544.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 1daa1fc..f47aa93 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -336,7 +336,11 @@ cxx_init (void) /* We cannot just assign to input_filename because it has already been initialized and will be used later as an N_BINCL for stabs+ debugging. */ - push_srcloc ("<internal>", 0); +#ifdef USE_MAPPED_LOCATION + push_srcloc (BUILTINS_LOCATION); +#else + push_srcloc ("<built-in>", 0); +#endif init_reswords (); init_tree (); |