aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/jcf-parse.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index fdfc79c..9a3da82 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -46,6 +46,11 @@
one.)
(resolve_qualified_expression_name): Fixed comment.
+Thu Apr 27 17:47:34 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
+
+ * jcf-parse.c (jcf_parse_source): Reset current_class and
+ current_function_decl to NULL before parsing a new file.
+
Thu Apr 27 17:25:33 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (block_end:): If the collected block doesn't feature a
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index cd0f283..6ef02bc 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -570,6 +570,8 @@ jcf_parse_source ()
java_push_parser_context ();
input_filename = current_jcf->filename;
file = get_identifier (input_filename);
+ current_class = NULL_TREE;
+ current_function_decl = NULL_TREE;
if (!HAS_BEEN_ALREADY_PARSED_P (file))
{
if (!(finput = fopen (input_filename, "r")))