diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2005-03-04 03:08:10 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@gcc.gnu.org> | 2005-03-04 03:08:10 +0000 |
commit | 3c0d102013cd6e7c5414efe07623ae014e476f8a (patch) | |
tree | 8b30afa78d4a038ac01a473a3fda126b6bbd2757 /gcc/c-opts.c | |
parent | 9bdae6af0e9d0e9825c5df7b3754f9d815a657f9 (diff) | |
download | gcc-3c0d102013cd6e7c5414efe07623ae014e476f8a.zip gcc-3c0d102013cd6e7c5414efe07623ae014e476f8a.tar.gz gcc-3c0d102013cd6e7c5414efe07623ae014e476f8a.tar.bz2 |
re PR debug/20253 (Macro debug info broken due to lexer change)
2005-03-03 Daniel Berlin <dberlin@dbrelin.org>
Fix PR debug/20253
* c-opts.c (c_common_parse_file): Call start_source_file
and end_source_file at the approriate times.
* dwarf2out.c (dwarf2out_finish): Don't auto-end
the main file, it will be done for us now.
From-SVN: r95872
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 575ff4d..d2abeb5 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1089,13 +1089,16 @@ c_common_parse_file (int set_yydebug) i = 0; for (;;) { + /* Start the main input file */ + (*debug_hooks->start_source_file) (0, this_input_filename); finish_options (); pch_init (); push_file_scope (); c_parse_file (); finish_file (); pop_file_scope (); - + /* And end the main input file. */ + (*debug_hooks->end_source_file) (0); if (++i >= num_in_fnames) break; cpp_undef_all (parse_in); |