diff options
author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-04 03:08:10 +0000 |
---|---|---|
committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-04 03:08:10 +0000 |
commit | 156660d7b49908d2990e04b2bc6a5d04915cfd2c (patch) | |
tree | 8b30afa78d4a038ac01a473a3fda126b6bbd2757 /gcc/c-opts.c | |
parent | 6ce29c48b801ec4621dbd473fc5d2e876c9ad45a (diff) | |
download | gcc-156660d7b49908d2990e04b2bc6a5d04915cfd2c.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95872 138bc75d-0d04-0410-961f-82ee72b054a4
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 575ff4d485b..d2abeb527b6 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); |