diff options
author | Tom Tromey <tromey@redhat.com> | 2000-12-16 01:51:51 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-12-16 01:51:51 +0000 |
commit | 325de66c4c853988ad1965cc476b6afc10eb7ea1 (patch) | |
tree | e54224f897491d43d19f6b6b3306fb441d12e5e4 /gcc/java | |
parent | 6bd1914e1089f2bed164ba3601b5f00c8c184c5d (diff) | |
download | gcc-325de66c4c853988ad1965cc476b6afc10eb7ea1.zip gcc-325de66c4c853988ad1965cc476b6afc10eb7ea1.tar.gz gcc-325de66c4c853988ad1965cc476b6afc10eb7ea1.tar.bz2 |
jcf-parse.c (jcf_parse_source): Set wfl_operator if not already set.
* jcf-parse.c (jcf_parse_source): Set wfl_operator if not already
set.
From-SVN: r38295
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; |