jcf-parse.c (jcf_parse_source): Set wfl_operator if not already set.
authorTom Tromey <tromey@redhat.com>
Sat, 16 Dec 2000 01:51:51 +0000 (01:51 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sat, 16 Dec 2000 01:51:51 +0000 (01:51 +0000)
* jcf-parse.c (jcf_parse_source): Set wfl_operator if not already
set.

From-SVN: r38295

gcc/java/ChangeLog
gcc/java/jcf-parse.c

index 299fd4997530939ae31f2a4e4fd36d7daa70c05e..af55e5b1f42a7ea2f45106b5f03ebfa192f03535 100644 (file)
@@ -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
index 91e8ae072701bfe20e115da4e090da0c0ab8097d..dcfb6126da09b6944af58826418e17749ad6ca79 100644 (file)
@@ -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;