diff options
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index a3f2878..7d63e2c 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -392,7 +392,10 @@ cxx_init (void) INIT_STATEMENT_CODES (stmt_codes); - input_filename = "<internal>"; + /* 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); init_reswords (); init_tree (); @@ -429,12 +432,16 @@ cxx_init (void) interface_unknown = 1; if (c_common_init () == false) - return false; + { + pop_srcloc(); + return false; + } init_cp_pragma (); init_repo (main_input_filename); + pop_srcloc(); return true; } |