diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-03-12 17:13:24 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-03-12 17:13:24 +0000 |
commit | 7e21fe59b2a6fdd9b5ac1f11f554fd64a7285bbd (patch) | |
tree | 46e462e2cad9662691fedffe68c7e8bd046c4eb8 /gcc/java/parse.y | |
parent | 6e0f130b0ef9c162289989db9d5906458e0e979e (diff) | |
download | gcc-7e21fe59b2a6fdd9b5ac1f11f554fd64a7285bbd.zip gcc-7e21fe59b2a6fdd9b5ac1f11f554fd64a7285bbd.tar.gz gcc-7e21fe59b2a6fdd9b5ac1f11f554fd64a7285bbd.tar.bz2 |
Warning fixes:
* constants.c (find_class_or_string_constant): Cast variable `j'
to a `jword' when comparing against one.
* expr.c (java_lang_expand_expr): Remove unused variables
`has_finally_p' and `op0'.
* gjavah.c (print_field_info): Cast a value to jint when comparing
against one. Likewise for a jlong.
(add_namelet): Likewise cast a `sizeof' to an int when comparing
against a signed quantity.
* jcf-dump.c (print_signature_type): Remove unused variable `digit'.
(print_signature): Don't needlessly dereference variable `str'
* jcf-reader.c (get_attribute): Mark variables `max_stack' and
`max_locals' with ATTRIBUTE_UNUSED.
(jcf_parse_class): Likewise for variable `index'.
* parse.h (reverse_jdep_list): Remove static prototype.
* parse.y (build_jump_to_finally): Remove prototype and definition.
(reverse_jdep_list): Add static prototype.
* typeck.c (convert_ieee_real_to_integer): Remove unused variables
`assignment' and `expr_decl'.
* verify.c (verify_jvm_instructions): Remove unused label `bad_ldc'.
From-SVN: r25731
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index c26a7cc..ad6122b 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -199,7 +199,6 @@ static tree string_constant_concatenation PROTO ((tree, tree)); static tree build_string_concatenation PROTO ((tree, tree)); static tree patch_string_cst PROTO ((tree)); static tree patch_string PROTO ((tree)); -static tree build_jump_to_finally PROTO ((tree, tree, tree, tree)); static tree build_try_statement PROTO ((int, tree, tree)); static tree build_try_finally_statement PROTO ((int, tree, tree)); static tree patch_try_statement PROTO ((tree)); @@ -239,6 +238,7 @@ static char *purify_type_name PROTO ((char *)); static tree patch_initialized_static_field PROTO ((tree)); static tree fold_constant_for_init PROTO ((tree, tree)); static tree strip_out_static_field_access_decl PROTO ((tree)); +static jdeplist *reverse_jdep_list PROTO ((struct parser_ctxt *)); /* Number of error found so far. */ int java_error_count; @@ -10711,36 +10711,6 @@ patch_switch_statement (node) /* 14.18 The try statement */ -/* Wrap BLOCK around a LABELED_BLOCK, set DECL to the newly generated - exit labeld and issue a jump to FINALLY_LABEL: - - LABELED_BLOCK - BLOCK - <orignal_statments> - DECL = &LABEL_DECL - GOTO_EXPR - FINALLY_LABEL - LABEL_DECL */ - -static tree -build_jump_to_finally (block, decl, finally_label, type) - tree block, decl, finally_label, type; -{ - tree stmt; - tree new_block = build (LABELED_BLOCK_EXPR, type, - create_label_decl (generate_name ()), block); - - stmt = build (MODIFY_EXPR, void_type_node, decl, - build_address_of (LABELED_BLOCK_LABEL (new_block))); - TREE_SIDE_EFFECTS (stmt) = 1; - CAN_COMPLETE_NORMALLY (stmt) = 1; - add_stmt_to_block (block, type, stmt); - stmt = build (GOTO_EXPR, void_type_node, finally_label); - TREE_SIDE_EFFECTS (stmt) = 1; - add_stmt_to_block (block, type, stmt); - return new_block; -} - static tree build_try_statement (location, try_block, catches) int location; |