diff options
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/jcf-parse.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 299fd49..af55e5b 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2000-12-15 Tom Tromey <tromey@redhat.com> + + * jcf-parse.c (jcf_parse_source): Set wfl_operator if not already + set. + 2000-12-14 Andrew Haley <aph@redhat.com> * boehm.c (mark_reference_fields): Change test to correctly detect diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index 91e8ae0..dcfb612 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -568,7 +568,10 @@ jcf_parse_source () java_parser_context_save_global (); java_push_parser_context (); BUILD_FILENAME_IDENTIFIER_NODE (file, current_jcf->filename); - EXPR_WFL_FILENAME_NODE (wfl_operator) = file; + if (wfl_operator == NULL_TREE) + wfl_operator = build_expr_wfl (NULL_TREE, file, 0, 0); + else + EXPR_WFL_FILENAME_NODE (wfl_operator) = file; input_filename = ggc_strdup (current_jcf->filename); current_class = NULL_TREE; current_function_decl = NULL_TREE; |