diff options
author | Per Bothner <per@bothner.com> | 2001-03-15 22:12:53 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2001-03-15 22:12:53 -0800 |
commit | 3a2e5926e6f7b9353623b9d4aad695cc421b28d7 (patch) | |
tree | 0a4026ba59dfbefaf55f78c6c5ea44e375253b02 /gcc/java/parse.y | |
parent | 47a50de993492168c324e97ed9c4eba52eda67e4 (diff) | |
download | gcc-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/parse.y')
-rw-r--r-- | gcc/java/parse.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index b40de8e..b29d170 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -8621,10 +8621,12 @@ java_expand_classes () for (; ctxp_for_generation; ctxp_for_generation = ctxp_for_generation->next) { ctxp = ctxp_for_generation; + input_filename = ctxp->filename; lang_init_source (2); /* Error msgs have method prototypes */ java_complete_expand_classes (); /* Complete and expand classes */ java_parse_abort_on_error (); } + input_filename = main_input_filename; /* Find anonymous classes and expand their constructor, now they have been fixed. */ |