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
This commit is contained in:
Jakub Jelinek 2009-11-28 17:21:52 +01:00 committed by Jakub Jelinek
parent 0f900dfafa
commit c750c20870
6 changed files with 17 additions and 14 deletions

View File

@ -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> 2009-10-20 Joel Dice <dicej@mailsnare.net>
PR java/28474 PR java/28474

View File

@ -484,7 +484,7 @@ void
initialize_builtins (void) initialize_builtins (void)
{ {
tree double_ftype_double, double_ftype_double_double; 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 boolean_ftype_boolean_boolean;
tree t; tree t;
int i; int i;
@ -501,7 +501,6 @@ initialize_builtins (void)
void_list_node = end_params_node; void_list_node = end_params_node;
t = tree_cons (NULL_TREE, float_type_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); t = tree_cons (NULL_TREE, float_type_node, t);
float_ftype_float_float = build_function_type (float_type_node, t); float_ftype_float_float = build_function_type (float_type_node, t);

View File

@ -632,7 +632,7 @@ java_stack_pop (int count)
{ {
while (count > 0) while (count > 0)
{ {
tree type, val; tree type;
gcc_assert (stack_pointer != 0); gcc_assert (stack_pointer != 0);
@ -644,7 +644,7 @@ java_stack_pop (int count)
type = stack_type_map[stack_pointer - 2]; type = stack_type_map[stack_pointer - 2];
} }
val = pop_value (type); pop_value (type);
count--; count--;
} }
} }
@ -2652,7 +2652,7 @@ build_jni_stub (tree method)
tree jniarg0, jniarg1, jniarg2, jniarg3; tree jniarg0, jniarg1, jniarg2, jniarg3;
tree jni_func_type, tem; tree jni_func_type, tem;
tree env_var, res_var = NULL_TREE, block; tree env_var, res_var = NULL_TREE, block;
tree method_args, res_type; tree method_args;
tree meth_var; tree meth_var;
tree bind; tree bind;
@ -2805,7 +2805,6 @@ build_jni_stub (tree method)
TREE_SIDE_EFFECTS (body) = 1; TREE_SIDE_EFFECTS (body) = 1;
/* Finally, do the return. */ /* Finally, do the return. */
res_type = void_type_node;
if (res_var != NULL_TREE) if (res_var != NULL_TREE)
{ {
tree drt; tree drt;

View File

@ -1305,7 +1305,6 @@ main (int argc, char** argv)
{ {
long compressed_size, member_size; long compressed_size, member_size;
int compression_method, filename_length, extra_length; int compression_method, filename_length, extra_length;
int general_purpose_bits;
const char *filename; const char *filename;
int total_length; int total_length;
if (flag_print_class_info) if (flag_print_class_info)
@ -1325,7 +1324,7 @@ main (int argc, char** argv)
} }
JCF_FILL (jcf, 26); JCF_FILL (jcf, 26);
JCF_SKIP (jcf, 2); 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); compression_method = JCF_readu2_le (jcf);
JCF_SKIP (jcf, 8); JCF_SKIP (jcf, 8);
compressed_size = JCF_readu4_le (jcf); compressed_size = JCF_readu4_le (jcf);

View File

@ -147,9 +147,6 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
{ {
int i, j; int i, j;
/* If nonzero, the user gave us the `-v' flag. */
int saw_verbose_flag = 0;
int saw_save_temps = 0; int saw_save_temps = 0;
/* This will be 0 if we encounter a situation where we should not /* 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; want_spec_file = 0;
else if (strcmp (argv[i], "-v") == 0) else if (strcmp (argv[i], "-v") == 0)
{ {
saw_verbose_flag = 1;
if (argc == 2) if (argc == 2)
{ {
/* If they only gave us `-v', don't try to link /* If they only gave us `-v', don't try to link

View File

@ -2035,7 +2035,6 @@ check_field_constant (int index, type *class_type, bool putfield)
{ {
vfy_string name, field_type; vfy_string name, field_type;
const char *typec; const char *typec;
int len;
type t; type t;
type ct = handle_field_or_method (index, type ct = handle_field_or_method (index,
@ -2044,7 +2043,6 @@ check_field_constant (int index, type *class_type, bool putfield)
if (class_type) if (class_type)
*class_type = ct; *class_type = ct;
typec = vfy_string_bytes (field_type); typec = vfy_string_bytes (field_type);
len = vfy_string_length (field_type);
if (typec[0] == '[' || typec[0] == 'L') if (typec[0] == '[' || typec[0] == 'L')
init_type_from_string (&t, field_type); init_type_from_string (&t, field_type);
else else