summaryrefslogtreecommitdiff
path: root/gcc/c-opts.c
diff options
context:
space:
mode:
authordberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-04 03:08:10 +0000
committerdberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-04 03:08:10 +0000
commit156660d7b49908d2990e04b2bc6a5d04915cfd2c (patch)
tree8b30afa78d4a038ac01a473a3fda126b6bbd2757 /gcc/c-opts.c
parent6ce29c48b801ec4621dbd473fc5d2e876c9ad45a (diff)
downloadgcc-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.c5
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);