diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-10-19 04:19:09 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-10-18 21:19:09 -0700 |
commit | dba41d307e45accc97c4f1efd1ea0e8deed2f522 (patch) | |
tree | a8158ec2c5d37f890d042e47898a6b93ffdc3d96 /gcc/java/java-tree.h | |
parent | 0a8c4c0cd9a83f013832eeb229956ee1e13e7a17 (diff) | |
download | gcc-dba41d307e45accc97c4f1efd1ea0e8deed2f522.zip gcc-dba41d307e45accc97c4f1efd1ea0e8deed2f522.tar.gz gcc-dba41d307e45accc97c4f1efd1ea0e8deed2f522.tar.bz2 |
gjavah.c (add_class_decl): Removed unused variables `tname', `tlen' and `name_index'.
2000-10-18 Alexandre Petit-Bianco <apbianco@cygnus.com>
* 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 <clinit> bodies, call
analyze_clinit_body.
(build_outer_field_access): Access to this$<n> 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)
From-SVN: r36946
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r-- | gcc/java/java-tree.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index 146e2e5..8196ea6 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -1359,6 +1359,16 @@ extern tree *type_map; scope of TYPE_DECL. */ #define DECL_INNER_CLASS_LIST(NODE) DECL_INITIAL (NODE) +/* Build a IDENTIFIER_POINTER for a file name we're considering. We + need to register the root, but we're trying to register it only + once. */ +#define BUILD_FILENAME_IDENTIFIER_NODE(F, S) \ + if (!((F) = maybe_get_identifier ((S)))) \ + { \ + (F) = get_identifier ((S)); \ + ggc_mark_tree ((F)); \ + } + /* Add a FIELD_DECL to RECORD_TYPE RTYPE. The field has name NAME (a char*), and type FTYPE. Unless this is the first field, FIELD most hold the previous field. |