diff options
author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-16 06:12:53 +0000 |
---|---|---|
committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-16 06:12:53 +0000 |
commit | 869705e1ef9d6a40e9ef63b4b8c3f76eb89f0648 (patch) | |
tree | 0a4026ba59dfbefaf55f78c6c5ea44e375253b02 /gcc/java/jcf-parse.c | |
parent | 34c8cd8dca4cf0dfd74761b30ebc208f7e8c54af (diff) | |
download | gcc-869705e1ef9d6a40e9ef63b4b8c3f76eb89f0648.tar.gz |
* jcf-parse.c (yyparse): Set/reset input_filename for source file.
* parse.y (java_expand_classes): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40541 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r-- | gcc/java/jcf-parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index 6ace7e8134d..b7a4c0b95f2 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -1064,8 +1064,10 @@ yyparse () for (ctxp = ctxp_for_generation; ctxp; ctxp = ctxp->next) { + input_filename = ctxp->filename; parse_source_file_2 (); } + input_filename = main_input_filename; java_expand_classes (); if (!java_report_errors () && !flag_syntax_only) |