aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2002-02-01 00:11:30 +0000
committerZack Weinberg <zack@gcc.gnu.org>2002-02-01 00:11:30 +0000
commitbebc7e8b3d0226dde405fc9a20b9a3be4e9db21e (patch)
treeae6f03a99fdebb015b8962a2d67f6c38968abef8 /gcc/c-decl.c
parent81622d2908a52a157f5dc4b4fc455283c92ac58c (diff)
downloadgcc-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-decl.c')
-rw-r--r--gcc/c-decl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 9deb193..4153f50 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -7014,6 +7014,7 @@ c_expand_body (fndecl, nested_p, can_defer_p)
/* Initialize the RTL code for the function. */
current_function_decl = fndecl;
+ input_filename = DECL_SOURCE_FILE (fndecl);
init_function_start (fndecl, input_filename, DECL_SOURCE_LINE (fndecl));
/* This function is being processed in whole-function mode. */