diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-11-28 17:21:52 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-11-28 17:21:52 +0100 |
commit | c750c208706d56fb9b3b8e2badf44ec4b7f37058 (patch) | |
tree | 596ff35fb23d527258a66b88de0cd538a21c783c | |
parent | 0f900dfafa90a1114d3768f3fe5fe4d07f250a9a (diff) | |
download | gcc-c750c208706d56fb9b3b8e2badf44ec4b7f37058.zip gcc-c750c208706d56fb9b3b8e2badf44ec4b7f37058.tar.gz gcc-c750c208706d56fb9b3b8e2badf44ec4b7f37058.tar.bz2 |
jvspec.c (lang_specific_driver): Remove unused saw_verbose_flag variable.
* jvspec.c (lang_specific_driver): Remove unused
saw_verbose_flag variable.
* jcf-dump.c (main): Remove unused general_purpose_bits
variable.
* builtins.c (initialize_builtins): Remove unused float_ftype_float
variable.
* expr.c (java_stack_pop): Remove unused val variable.
(build_jni_stub): Remove unused res_type variable.
* verify-impl.c (check_field_constant): Remove unused len variable.
From-SVN: r154727
-rw-r--r-- | gcc/java/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/java/builtins.c | 3 | ||||
-rw-r--r-- | gcc/java/expr.c | 7 | ||||
-rw-r--r-- | gcc/java/jcf-dump.c | 3 | ||||
-rw-r--r-- | gcc/java/jvspec.c | 4 | ||||
-rw-r--r-- | gcc/java/verify-impl.c | 2 |
6 files changed, 17 insertions, 14 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 7815bc8..e61a00e 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,15 @@ +2009-11-28 Jakub Jelinek <jakub@redhat.com> + + * jvspec.c (lang_specific_driver): Remove unused + saw_verbose_flag variable. + * jcf-dump.c (main): Remove unused general_purpose_bits + variable. + * builtins.c (initialize_builtins): Remove unused float_ftype_float + variable. + * expr.c (java_stack_pop): Remove unused val variable. + (build_jni_stub): Remove unused res_type variable. + * verify-impl.c (check_field_constant): Remove unused len variable. + 2009-10-20 Joel Dice <dicej@mailsnare.net> PR java/28474 diff --git a/gcc/java/builtins.c b/gcc/java/builtins.c index 6e4815b..099b9e0 100644 --- a/gcc/java/builtins.c +++ b/gcc/java/builtins.c @@ -484,7 +484,7 @@ void initialize_builtins (void) { tree double_ftype_double, double_ftype_double_double; - tree float_ftype_float, float_ftype_float_float; + tree float_ftype_float_float; tree boolean_ftype_boolean_boolean; tree t; int i; @@ -501,7 +501,6 @@ initialize_builtins (void) void_list_node = end_params_node; t = tree_cons (NULL_TREE, float_type_node, end_params_node); - float_ftype_float = build_function_type (float_type_node, t); t = tree_cons (NULL_TREE, float_type_node, t); float_ftype_float_float = build_function_type (float_type_node, t); diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 72ca773..3c0e2ca 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -632,7 +632,7 @@ java_stack_pop (int count) { while (count > 0) { - tree type, val; + tree type; gcc_assert (stack_pointer != 0); @@ -644,7 +644,7 @@ java_stack_pop (int count) type = stack_type_map[stack_pointer - 2]; } - val = pop_value (type); + pop_value (type); count--; } } @@ -2652,7 +2652,7 @@ build_jni_stub (tree method) tree jniarg0, jniarg1, jniarg2, jniarg3; tree jni_func_type, tem; tree env_var, res_var = NULL_TREE, block; - tree method_args, res_type; + tree method_args; tree meth_var; tree bind; @@ -2805,7 +2805,6 @@ build_jni_stub (tree method) TREE_SIDE_EFFECTS (body) = 1; /* Finally, do the return. */ - res_type = void_type_node; if (res_var != NULL_TREE) { tree drt; diff --git a/gcc/java/jcf-dump.c b/gcc/java/jcf-dump.c index 8008dd2..a36029e 100644 --- a/gcc/java/jcf-dump.c +++ b/gcc/java/jcf-dump.c @@ -1305,7 +1305,6 @@ main (int argc, char** argv) { long compressed_size, member_size; int compression_method, filename_length, extra_length; - int general_purpose_bits; const char *filename; int total_length; if (flag_print_class_info) @@ -1325,7 +1324,7 @@ main (int argc, char** argv) } JCF_FILL (jcf, 26); JCF_SKIP (jcf, 2); - general_purpose_bits = JCF_readu2_le (jcf); + (void) /* general_purpose_bits = */ JCF_readu2_le (jcf); compression_method = JCF_readu2_le (jcf); JCF_SKIP (jcf, 8); compressed_size = JCF_readu4_le (jcf); diff --git a/gcc/java/jvspec.c b/gcc/java/jvspec.c index 9e57dab..0f58d47 100644 --- a/gcc/java/jvspec.c +++ b/gcc/java/jvspec.c @@ -147,9 +147,6 @@ lang_specific_driver (int *in_argc, const char *const **in_argv, { int i, j; - /* If nonzero, the user gave us the `-v' flag. */ - int saw_verbose_flag = 0; - int saw_save_temps = 0; /* This will be 0 if we encounter a situation where we should not @@ -266,7 +263,6 @@ lang_specific_driver (int *in_argc, const char *const **in_argv, want_spec_file = 0; else if (strcmp (argv[i], "-v") == 0) { - saw_verbose_flag = 1; if (argc == 2) { /* If they only gave us `-v', don't try to link diff --git a/gcc/java/verify-impl.c b/gcc/java/verify-impl.c index 759ee42..1286121 100644 --- a/gcc/java/verify-impl.c +++ b/gcc/java/verify-impl.c @@ -2035,7 +2035,6 @@ check_field_constant (int index, type *class_type, bool putfield) { vfy_string name, field_type; const char *typec; - int len; type t; type ct = handle_field_or_method (index, @@ -2044,7 +2043,6 @@ check_field_constant (int index, type *class_type, bool putfield) if (class_type) *class_type = ct; typec = vfy_string_bytes (field_type); - len = vfy_string_length (field_type); if (typec[0] == '[' || typec[0] == 'L') init_type_from_string (&t, field_type); else |