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
+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
+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
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);
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;
{
gfc_error ("PRIVATE statement in TYPE at %C must be inside "
"a MODULE");
- error_flag = 1;
break;
}
{
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;
{
gfc_error ("SEQUENCE statement at %C must precede "
"structure components");
- error_flag = 1;
break;
}
if (seen_sequence)
{
gfc_error ("Duplicate SEQUENCE statement at %C");
- error_flag = 1;
}
seen_sequence = 1;
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:
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;
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;
-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.
+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
+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.
+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