From 6a6de9c5a8bf31e918d13e2ded315b7dd0eaf1ed Mon Sep 17 00:00:00 2001 From: apbianco Date: Thu, 19 Oct 2000 04:19:09 +0000 Subject: 2000-10-18 Alexandre Petit-Bianco * gjavah.c (add_class_decl): Removed unused variables `tname', `tlen' and `name_index'. * java-tree.h (BUILD_FILENAME_IDENTIFIER_NODE): New macro. * jcf-parse.c (jcf_parse_source): Use it and set EXPR_WFL_FILENAME in `wfl_operator' with value. (yyparse): Use BUILD_FILENAME_IDENTIFIER_NODE. (jcf_figure_file_type): Fixed identation. * lex.c (java_get_line_col): Use EOF. Tuned `^' placement. * parse.y (analyze_clinit_body): New function. (static_initializer:): Reset `current_static_block'. (java_parser_context_restore_global): Set EXPR_WFL_FIILENAME_NODE in `wfl_operator' with new value. (lookup_cl): Use EXPR_WFL_FILENAME. (maybe_yank_clinit): Handle bogus bodies, call analyze_clinit_body. (build_outer_field_access): Access to this$ built from current_class, not its outer context. (build_access_to_thisn): Fixed leading comment. Tidied things up. (resolve_qualified_expression_name): Handle `T.this' and `T.this.f()'. (patch_method_invocation): Use `is_static_flag' when already initialized. (patch_newarray): Removed assignment in ternary operator. (http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00629.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36946 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/java/gjavah.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gcc/java/gjavah.c') diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index 4cf0e98257f..29cbdf82cef 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -1561,10 +1561,6 @@ add_class_decl (out, jcf, signature) const unsigned char *s = JPOOL_UTF_DATA (jcf, signature); int len = JPOOL_UTF_LENGTH (jcf, signature); int i; - /* Name of class we are processing. */ - int name_index = JPOOL_USHORT1 (jcf, jcf->this_class); - int tlen = JPOOL_UTF_LENGTH (jcf, name_index); - const char *tname = JPOOL_UTF_DATA (jcf, name_index); for (i = 0; i < len; ++i) { -- cgit v1.2.3