summaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-01 00:11:30 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-01 00:11:30 +0000
commite62fd7d5b1208dc105d246c2680ec8f4de3e65b4 (patch)
treeae6f03a99fdebb015b8962a2d67f6c38968abef8 /gcc/c-decl.c
parent0034ce222e023583f0603ad466f358c5c1b7847c (diff)
downloadgcc-e62fd7d5b1208dc105d246c2680ec8f4de3e65b4.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49383 138bc75d-0d04-0410-961f-82ee72b054a4
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 9deb193dae0..4153f50e808 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. */