diff options
| author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-01 18:26:16 +0000 |
|---|---|---|
| committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-01 18:26:16 +0000 |
| commit | 21c00a5ad6ef7590e0028e870259cb93561bb72f (patch) | |
| tree | f672448a1bddc5c36b262cc8a1ba366e354268b8 | |
| parent | 681adc7c84451df2b282ea5f725ad3ebcfd42526 (diff) | |
| download | ppe42-gcc-21c00a5ad6ef7590e0028e870259cb93561bb72f.tar.gz ppe42-gcc-21c00a5ad6ef7590e0028e870259cb93561bb72f.zip | |
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)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34343 138bc75d-0d04-0410-961f-82ee72b054a4
| -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 fdfc79cf62c..9a3da82207e 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 cd0f283f81d..6ef02bc9da7 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"))) |

