jvspec.c (lang_specific_driver): Remove unused saw_verbose_flag variable.
authorJakub Jelinek <jakub@redhat.com>
Sat, 28 Nov 2009 16:21:52 +0000 (17:21 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 28 Nov 2009 16:21:52 +0000 (17:21 +0100)
* 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

gcc/java/ChangeLog
gcc/java/builtins.c
gcc/java/expr.c
gcc/java/jcf-dump.c
gcc/java/jvspec.c
gcc/java/verify-impl.c

index 7815bc8a050805b778239c286281970329dea332..e61a00eefaa39115a8e4c9c1d2ae4988351ccf93 100644 (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>
 
        PR java/28474
index 6e4815beeab2755e9e7a4b2b5bb95741c0e9bebe..099b9e00cd86c50346f400e9b51df6258debd123 100644 (file)
@@ -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);
 
index 72ca77303ec3bdc7b3e841d156de97fff344c8f9..3c0e2ca157219761c02796fa5879ae2b358ae729 100644 (file)
@@ -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;
index 8008dd2073fa0c21d4d3db4111e60f4f5ece430c..a36029eff7a3094a242923025844a2f5ad640d8e 100644 (file)
@@ -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);
index 9e57dab651cc3dfb0eeb19d87e0032e06e592956..0f58d47d20c70b90ff9a8e9e675f4073a9862def 100644 (file)
@@ -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
index 759ee42c3dbb1adf3a5b6cd9436a0d1f15d9e270..12861214e304cfc2105c68e3b9b34bfc30710287 100644 (file)
@@ -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