diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-06-01 18:26:16 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-06-01 11:26:16 -0700 |
commit | 0ba154aa230cbd0dc92a8500919922a378df4767 (patch) | |
tree | f672448a1bddc5c36b262cc8a1ba366e354268b8 /gcc | |
parent | eb9c1bb6e27de891fcc11f69b83a1949d35ce27d (diff) | |
download | gcc-0ba154aa230cbd0dc92a8500919922a378df4767.zip gcc-0ba154aa230cbd0dc92a8500919922a378df4767.tar.gz gcc-0ba154aa230cbd0dc92a8500919922a378df4767.tar.bz2 |
re GNATS gcj/207 (Compiler failure)
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.
(This fixes the PR gcj/207:
http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00044.html)
From-SVN: r34343
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/jcf-parse.c | 2 |
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"))) |