diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-08-25 13:37:46 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-08-25 13:37:46 +0000 |
commit | 6a651371a77f76227d6bbd0642f8648793568c65 (patch) | |
tree | d01a3fd61a606aadd243044b3287b1e5c640f009 /gcc/loop.c | |
parent | e797ff70489ee22f953a870a772151660a61dfa5 (diff) | |
download | gcc-6a651371a77f76227d6bbd0642f8648793568c65.zip gcc-6a651371a77f76227d6bbd0642f8648793568c65.tar.gz gcc-6a651371a77f76227d6bbd0642f8648793568c65.tar.bz2 |
Warning fixes:
* calls.c (emit_call_1): Mark parameter `stack_size' with
ATTRIBUTE_UNUSED.
(expand_call): Initialize variable `insn'.
(emit_library_call): Likewise for variable `high_to_save'.
(emit_library_call_value): Likewise.
(store_one_arg): Likewise for variables `lower_bound' and
`upper_bound'.
* combine.c (try_combine): Likewise for variables `i2_code_number'
and `other_code_number'.
(find_split_point): Likewise for variables `pos', `unsignedp' and
`inner'.
(simplify_if_then_else): Likewise for variables `op' and `c1'.
(simplify_and_const_int): Remove unused variable `width'.
(merge_outer_ops): Likewise.
* cse.c (simplify_binary_operation): Cast an INTVAL() to `unsigned
HOST_WIDE_INT' when comparing against one.
(simplify_relational_operation): Likewise.
(cse_insn): Initialize variables `src_eqv_volatile',
`src_eqv_in_memory', `src_eqv_in_struct', `src_eqv_hash' and `sets'.
* final.c (init_final): Constify parameter `filename'.
(final_start_function): Mark parameter `optimize' with
ATTRIBUTE_UNUSED.
(profile_function): Likewise for parameters `first' and `optimize'.
(output_source_line): Likewise for parameter `file'.
* integrate.c (subst_constants): Cast a value to `size_t' when
comparing against one.
(mark_stores): Initialize variable `mode'. Cast a value to
`size_t' when comparing against one.
* integrate.h (MAYBE_EXTEND_CONST_EQUIV_VARRAY): Likewise.
* loop.c (move_movables): Initialize variable `first'.
(strength_reduce): Likewise for variable `increment'.
(check_dbra_loop): Likewise for variable `comparison_val'. Cast a
value to `size_t' when comparing against one.
(load_mems): Initialize variable `end_label'.
* output.h (init_final): Constify parameter.
* reload.c (decompose): Initialize variable `base'.
* reload1.c (reload): Likewise for variable `is_scalar'.
(spill_hard_reg): Mark parameter `dumpfile' with ATTRIBUTE_UNUSED.
(choose_reload_regs): Initialize variable `mode'.
(emit_reload_insns): Likewise for variable `store_insn'.
(reload_cse_noop_set_p): Mark parameter `insn' with
ATTRIBUTE_UNUSED.
(reload_combine): Initialize variable `set'.
* unroll.c (unroll_loop): Likewise for variable `local_label'.
(copy_loop_body): Cast a value to `size_t' when comparing against
one.
* varasm.c (assemble_variable): Initialize variable `size_tree'.
(const_hash): Add an `else abort()' in an if-else-if-else sequence.
(remove_from_pending_weak_list): Mark parameter `name' with
ATTRIBUTE_UNUSED.
From-SVN: r28860
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1838,7 +1838,7 @@ move_movables (movables, threshold, insn_count, loop_start, end, nregs) { int count; register struct movable *m1; - rtx first; + rtx first = NULL_RTX; /* Now move the insns that set the reg. */ @@ -4017,7 +4017,7 @@ strength_reduce (scan_start, end, loop_top, insn_count, else { struct iv_class *bl2 = 0; - rtx increment; + rtx increment = NULL_RTX; /* Biv initial value is not a simple move. If it is the sum of another biv and a constant, check if both bivs are incremented @@ -7901,7 +7901,7 @@ check_dbra_loop (loop_end, insn_count, loop_start, loop_info) || (GET_CODE (comparison) == LE && no_use_except_counting))) { - HOST_WIDE_INT add_val, add_adjust, comparison_val; + HOST_WIDE_INT add_val, add_adjust, comparison_val = 0; rtx initial_value, comparison_value; int nonneg = 0; enum rtx_code cmp_code; @@ -8173,7 +8173,7 @@ check_dbra_loop (loop_end, insn_count, loop_start, loop_info) REG_EQUAL notes should still be correct. */ if (! set || GET_CODE (SET_DEST (set)) != REG - || REGNO (SET_DEST (set)) >= reg_iv_type->num_elements + || (size_t) REGNO (SET_DEST (set)) >= reg_iv_type->num_elements || REG_IV_TYPE (REGNO (SET_DEST (set))) != GENERAL_INDUCT || REG_IV_INFO (REGNO (SET_DEST (set)))->src_reg != bl->biv->src_reg) for (pnote = ®_NOTES (p); *pnote;) @@ -9509,7 +9509,7 @@ load_mems (scan_start, end, loop_top, start) int i; rtx p; rtx label = NULL_RTX; - rtx end_label; + rtx end_label = NULL_RTX; if (loop_mems_idx > 0) { |