aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2001-03-15 22:12:53 -0800
committerPer Bothner <bothner@gcc.gnu.org>2001-03-15 22:12:53 -0800
commit3a2e5926e6f7b9353623b9d4aad695cc421b28d7 (patch)
tree0a4026ba59dfbefaf55f78c6c5ea44e375253b02 /gcc/java/jcf-parse.c
parent47a50de993492168c324e97ed9c4eba52eda67e4 (diff)
downloadgcc-3a2e5926e6f7b9353623b9d4aad695cc421b28d7.zip
gcc-3a2e5926e6f7b9353623b9d4aad695cc421b28d7.tar.gz
gcc-3a2e5926e6f7b9353623b9d4aad695cc421b28d7.tar.bz2
jcf-parse.c (yyparse): Set/reset input_filename for source file.
* jcf-parse.c (yyparse): Set/reset input_filename for source file. * parse.y (java_expand_classes): Likewise. From-SVN: r40541
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 6ace7e8..b7a4c0b 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)