diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2002-02-01 00:11:30 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2002-02-01 00:11:30 +0000 |
commit | bebc7e8b3d0226dde405fc9a20b9a3be4e9db21e (patch) | |
tree | ae6f03a99fdebb015b8962a2d67f6c38968abef8 /gcc/c-lex.c | |
parent | 81622d2908a52a157f5dc4b4fc455283c92ac58c (diff) | |
download | gcc-bebc7e8b3d0226dde405fc9a20b9a3be4e9db21e.zip gcc-bebc7e8b3d0226dde405fc9a20b9a3be4e9db21e.tar.gz gcc-bebc7e8b3d0226dde405fc9a20b9a3be4e9db21e.tar.bz2 |
c-lex.c (yyparse): Call debug_hooks->start_source_file for the primary source file...
* c-lex.c (yyparse): Call debug_hooks->start_source_file for
the primary source file; this has not been done yet.
* c-decl.c (c_expand_body): Reset input_filename from
DECL_SOURCE_FILE (fndecl) before calling init_function_start.
From-SVN: r49383
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index fe08f41..a0d2bbd 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -150,11 +150,14 @@ init_c_lex (filename) } /* A thin wrapper around the real parser that initializes the - integrated preprocessor after debug output has been initialized. */ + integrated preprocessor after debug output has been initialized. + Also, make sure the start_source_file debug hook gets called for + the primary source file. */ int yyparse() { + (*debug_hooks->start_source_file) (lineno, input_filename); cpp_finish_options (parse_in); return yyparse_1(); |