aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>2001-01-10 17:05:43 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>2001-01-10 09:05:43 -0800
commit761491c8dc565cd85bfe7b59c41706b61faffd63 (patch)
tree32b7af9ce6f4e5053e903e857f8b85deacf18cfd /gcc/java/jcf-parse.c
parent31bb3027a6ebbaa77b0d159f792a8fa9147b8841 (diff)
downloadgcc-761491c8dc565cd85bfe7b59c41706b61faffd63.zip
gcc-761491c8dc565cd85bfe7b59c41706b61faffd63.tar.gz
gcc-761491c8dc565cd85bfe7b59c41706b61faffd63.tar.bz2
[multiple changes]
2001-01-08 Alexandre Petit-Bianco <apbianco@cygnus.com> * java-tree.h (lang_printable_name_wls): New prototype. * lang.c (put_decl_name): Removed dead code. Use DECL_CONTEXT rather than `current_class' to print type name. Don't prepend type names when printing constructor names. (lang_printable_name_wls): New function. * jcf-parse.c (jcf_parse_source): Pass NULL `file' argument to `build_expr_wfl', alway set EXPR_WFL_FILENAME_NODE. * parse.y (patch_method_invocation): Message tuned for constructors. (not_accessible_p): Grant `private' access from within enclosing contexts. 2001-01-05 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (patch_binop): Compute missing type in error situations. (http://gcc.gnu.org/ml/gcc-patches/2001-01/msg00752.html) From-SVN: r38870
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index dcfb612..3fa64b2 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -569,9 +569,8 @@ jcf_parse_source ()
java_push_parser_context ();
BUILD_FILENAME_IDENTIFIER_NODE (file, current_jcf->filename);
if (wfl_operator == NULL_TREE)
- wfl_operator = build_expr_wfl (NULL_TREE, file, 0, 0);
- else
- EXPR_WFL_FILENAME_NODE (wfl_operator) = file;
+ wfl_operator = build_expr_wfl (NULL_TREE, NULL, 0, 0);
+ EXPR_WFL_FILENAME_NODE (wfl_operator) = file;
input_filename = ggc_strdup (current_jcf->filename);
current_class = NULL_TREE;
current_function_decl = NULL_TREE;