OSDN Git Service

* jcf-parse.c (jcf_parse_source): Set wfl_operator if not already
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 16 Dec 2000 01:51:51 +0000 (01:51 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 16 Dec 2000 01:51:51 +0000 (01:51 +0000)
set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38295 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 299fd49..af55e5b 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 91e8ae0..dcfb612 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;