OSDN Git Service

* tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Apr 2010 20:27:37 +0000 (20:27 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 00:51:06 +0000 (09:51 +0900)
used count variable.
* genemit.c (gen_expand, gen_split): Avoid set but not used warnings
when operandN variables aren't used in the body of the expander
or splitter.
* tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
* tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
* tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
FOR_EACH_IMM_USE_ON_STMT): Likewise.
* tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
* tree.c (PROCESS_ARG): Likewise.
fortran/
* parse.c (parse_derived, parse_enum): Avoid set but not used
warning.
java/
* expr.c (process_jvm_instruction): Avoid set but not used warning.
* builtins.c (compareAndSwapInt_builtin, compareAndSwapLong_builtin,
getVolatile_builtin): Likewise.
libjava/
* exception.cc (_Jv_Throw): Avoid set but not used warning.
* include/java-assert.h (JvAssertMessage, JvAssert): Use argument in
sizeof to avoid set but not used warnings.
libjava/classpath/
* native/jni/midi-alsa/gnu_javax_sound_midi_alsa_AlsaPortDevice.c
(Java_gnu_javax_sound_midi_alsa_AlsaPortDevice_run_1receiver_1thread_1):
Avoid set but not used warning.
libiberty/
* regex.c (byte_re_match_2_internal): Avoid set but not used
warning.
gcc/testsuite/
* gcc.dg/builtin-choose-expr.c: Avoid set but not used warnings.
* gcc.dg/trunc-1.c: Likewise.
* gcc.dg/vla-9.c: Likewise.
* gcc.dg/dfp/composite-type.c: Likewise.
libffi/
* testsuite/libffi.call/err_bad_abi.c: Remove unused args variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158084 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/parse.c
gcc/java/ChangeLog
gcc/testsuite/ChangeLog
libffi/ChangeLog
libjava/ChangeLog

index 2a6c593..1f32f76 100644 (file)
@@ -1,3 +1,18 @@
+2010-04-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
+       used count variable.
+       * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
+       when operandN variables aren't used in the body of the expander
+       or splitter.
+       * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
+       FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
+       * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
+       * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
+       FOR_EACH_IMM_USE_ON_STMT): Likewise.
+       * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
+       * tree.c (PROCESS_ARG): Likewise.
+
 2010-04-07  Simon Baldwin  <simonb@google.com>
 
        * diagnostic.h (diagnostic_override_option_index): New macro to
index 1f46730..795eeb5 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * parse.c (parse_derived, parse_enum): Avoid set but not used
+       warning.
+
 2010-04-07  Janne Blomqvist  <jb@gcc.gnu.org>
 
        PR fortran/40539
index 190148c..ef8931d 100644 (file)
@@ -1968,14 +1968,12 @@ parse_derived_contains (void)
 static void
 parse_derived (void)
 {
-  int compiling_type, seen_private, seen_sequence, seen_component, error_flag;
+  int compiling_type, seen_private, seen_sequence, seen_component;
   gfc_statement st;
   gfc_state_data s;
   gfc_symbol *sym;
   gfc_component *c;
 
-  error_flag = 0;
-
   accept_statement (ST_DERIVED_DECL);
   push_state (&s, COMP_DERIVED, gfc_new_block);
 
@@ -2002,18 +2000,15 @@ parse_derived (void)
 
        case ST_FINAL:
          gfc_error ("FINAL declaration at %C must be inside CONTAINS");
-         error_flag = 1;
          break;
 
        case ST_END_TYPE:
 endType:
          compiling_type = 0;
 
-         if (!seen_component
-             && (gfc_notify_std (GFC_STD_F2003, "Fortran 2003: Derived type "
-                                "definition at %C without components")
-                 == FAILURE))
-           error_flag = 1;
+         if (!seen_component)
+           gfc_notify_std (GFC_STD_F2003, "Fortran 2003: Derived type "
+                           "definition at %C without components");
 
          accept_statement (ST_END_TYPE);
          break;
@@ -2023,7 +2018,6 @@ endType:
            {
              gfc_error ("PRIVATE statement in TYPE at %C must be inside "
                         "a MODULE");
-             error_flag = 1;
              break;
            }
 
@@ -2031,15 +2025,11 @@ endType:
            {
              gfc_error ("PRIVATE statement at %C must precede "
                         "structure components");
-             error_flag = 1;
              break;
            }
 
          if (seen_private)
-           {
-             gfc_error ("Duplicate PRIVATE statement at %C");
-             error_flag = 1;
-           }
+           gfc_error ("Duplicate PRIVATE statement at %C");
 
          s.sym->component_access = ACCESS_PRIVATE;
 
@@ -2052,7 +2042,6 @@ endType:
            {
              gfc_error ("SEQUENCE statement at %C must precede "
                         "structure components");
-             error_flag = 1;
              break;
            }
 
@@ -2063,7 +2052,6 @@ endType:
          if (seen_sequence)
            {
              gfc_error ("Duplicate SEQUENCE statement at %C");
-             error_flag = 1;
            }
 
          seen_sequence = 1;
@@ -2072,14 +2060,12 @@ endType:
          break;
 
        case ST_CONTAINS:
-         if (gfc_notify_std (GFC_STD_F2003,
-                             "Fortran 2003:  CONTAINS block in derived type"
-                             " definition at %C") == FAILURE)
-           error_flag = 1;
+         gfc_notify_std (GFC_STD_F2003,
+                         "Fortran 2003:  CONTAINS block in derived type"
+                         " definition at %C");
 
          accept_statement (ST_CONTAINS);
-         if (parse_derived_contains ())
-           error_flag = 1;
+         parse_derived_contains ();
          goto endType;
 
        default:
@@ -2138,14 +2124,11 @@ endType:
 static void
 parse_enum (void)
 {
-  int error_flag;
   gfc_statement st;
   int compiling_enum;
   gfc_state_data s;
   int seen_enumerator = 0;
 
-  error_flag = 0;
-
   push_state (&s, COMP_ENUM, gfc_new_block);
 
   compiling_enum = 1;
@@ -2167,10 +2150,7 @@ parse_enum (void)
        case ST_END_ENUM:
          compiling_enum = 0;
          if (!seen_enumerator)
-           {
-             gfc_error ("ENUM declaration at %C has no ENUMERATORS");
-             error_flag = 1;
-           }
+           gfc_error ("ENUM declaration at %C has no ENUMERATORS");
          accept_statement (st);
          break;
 
index 1fe9902..f1a6080 100644 (file)
@@ -1,75 +1,3 @@
-2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
-
-       * typeck.c, decl.c, jcf-parse.c, except.c, expr.c:
-
-2010-05-20  Jakub Jelinek  <jakub@redhat.com>
-
-       PR debug/43521
-       * decl.c (start_java_method): Set DECL_ARTIFICIAL on the 'this'
-       PARM_DECL.
-
-2010-05-19  Anatoly Sokolov  <aesok@post.ru>
-
-       * jcf-parse.c (get_constant): Use double_int_to_tree instead of
-       build_int_cst_wide_type.
-
-2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
-
-       * expr.c (pop_arguments): Fix use of undeclared variable.
-
-2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
-
-       * expr.c (expand_java_multianewarray): Use build_call_vec instead of
-       build_call_list.
-       (pop_arguments): Return a VEC instead of a tree.  Take a method type
-       rather than a list of argument types.
-       (rewrite_rule): Change signature. of rewrite_arglist member.
-       (rewrite_arglist_getcaller): Update signature.
-       (rewrite_arglist_getclass): Likewise.
-       (maybe_rewrite_invocation): Update for rewrite_arglist change.
-       (build_known_method_ref): Take a VEC instead of a tree.
-       (invoke_build_dtable): Likewise.
-       (expand_invoke): Update calls to pop_arguments.  Use build_call_vec
-       instead of build_call_list.
-       (build_jni_stub): Use build_call_vec instead of build_call_list.
-       * java-tree.h (maybe_rewrite_invocation): Update declaration.
-       (build_known_method_ref): Likewise.
-       (invoke_build_dtable): Likewise.
-
-2010-05-14  Nathan Froyd  <froydnj@codesourcery.com>
-
-       PR 44103
-       * java-tree.h (START_RECORD_CONSTRUCTOR): Change first argument to a
-       vector.  Move call to build_constructor...
-       (FINISH_RECORD_CONSTRUCTOR): ...here.  Add necessary arguments.  Clear
-       TREE_CONSTANT on the constructor.
-       (PUSH_SUPER_VALUE): Change first argument to a vector.
-       (PUSH_FIELD_VALUE): Likewise.
-       * resource.c (compile_resource_data): Update calls to above macros.
-       * constants.c (build_constants_constructor): Likewise.
-       * class.c (build_utf8_ref): Likewise.
-       (make_field_value): Likewise.
-       (make_method_value): Likewise.
-       (add_table_and_syms): New function.
-       (make_class_data): Call it.  Update calls to above macros.
-       (build_symbol_table_entry): New function.
-       (build_symbol_entry): Call it.  Update calls to above macros.
-       (emit_symbol_table): Likewise.
-       (make_catch_class_record): Update calls to above macros.
-       (build_assertion_table_entry): New function.
-       (add_assertion_table_entry): Call it.
-       (emit_assertion_table): Likewise.
-
-2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
-
-       PR 40989
-       * lang.c (java_handle_option): Add argument kind.
-
-2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
-
-       * decl.c (java_init_decl_processing): Remove argument in call to
-       initialize_sizetypes
-
 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
 
        * exception.cc (_Jv_Throw): Avoid set but not used warning.
index 5c31381..b7fb0c5 100644 (file)
@@ -1,3 +1,10 @@
+2010-04-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.dg/builtin-choose-expr.c: Avoid set but not used warnings.
+       * gcc.dg/trunc-1.c: Likewise.
+       * gcc.dg/vla-9.c: Likewise.
+       * gcc.dg/dfp/composite-type.c: Likewise.
+
 2010-04-07  Iain Sandoe <iains@gcc.gnu.org>
 
        PR objc/35996
index 2d4ad86..6abe696 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * regex.c (byte_re_match_2_internal): Avoid set but not used
+       warning.
+
 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * Makefile.in: Regenerate.
index 0a46cf5..dd502d1 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * exception.cc (_Jv_Throw): Avoid set but not used warning.
+       * include/java-assert.h (JvAssertMessage, JvAssert): Use argument in
+       sizeof to avoid set but not used warnings.
+
 2010-04-07  Jason Merrill  <jason@redhat.com>
 
        * gnu/gcj/runtime/natSharedLibLoader.cc (findCore): Move