aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-07-19 04:08:32 +0000
committerBen Elliston <bje@gcc.gnu.org>2005-07-19 14:08:32 +1000
commitdfea6c85d86d561ce13b3e0278afab4106547ba8 (patch)
tree6dbb8cbe0b281c1de8f2264e4a111ada8e550d69
parentb9d3348810a657d5b64e23cb6f098bd7d479191b (diff)
downloadgcc-dfea6c85d86d561ce13b3e0278afab4106547ba8.zip
gcc-dfea6c85d86d561ce13b3e0278afab4106547ba8.tar.gz
gcc-dfea6c85d86d561ce13b3e0278afab4106547ba8.tar.bz2
bt-load.c (link_btr_uses): Fix uninitialised warnings.
* bt-load.c (link_btr_uses): Fix uninitialised warnings. * cfganal.c (find_edge_index): Ditto. * combine.c (combine_instructions): Ditto. * ddg.c (create_scc): Ditto. (find_successors): Ditto. (find_predecessors): Ditto. (find_nodes_on_paths): Ditto. (longest_simple_path): Ditto. * flow.c (update_life_info): Ditto. (count_or_remove_death_notes): Ditto. (clear_log_links): Ditto. * modulo-sched.c (generate_reg_moves): Ditto. (find_max_asap): Ditto. (find_max_hv_min_mob): Ditto. (find_max_dv_min_mob): Ditto. * sbitmap.c (sbitmap_first_set_bit): Ditto. * sched-rgn.c (extract_edgelst): Ditto. * tree-into-ssa.c (prepare_names_to_update): Ditto. (dump_update_ssa): Ditto. (ssa_names_to_replace) Ditto. (switch_virtuals_to_full_rewrite): Ditto. (update_ssa): Ditto. * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto. From-SVN: r102151
-rw-r--r--gcc/ChangeLog27
-rw-r--r--gcc/bt-load.c2
-rw-r--r--gcc/cfganal.c2
-rw-r--r--gcc/combine.c2
-rw-r--r--gcc/ddg.c10
-rw-r--r--gcc/flow.c6
-rw-r--r--gcc/modulo-sched.c8
-rw-r--r--gcc/sbitmap.c2
-rw-r--r--gcc/sched-rgn.c2
-rw-r--r--gcc/tree-into-ssa.c10
-rw-r--r--gcc/tree-vect-transform.c2
11 files changed, 49 insertions, 24 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7828291..856623e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,29 @@
+2005-07-19 Ben Elliston <bje@au.ibm.com>
+
+ * bt-load.c (link_btr_uses): Fix uninitialised warnings.
+ * cfganal.c (find_edge_index): Ditto.
+ * combine.c (combine_instructions): Ditto.
+ * ddg.c (create_scc): Ditto.
+ (find_successors): Ditto.
+ (find_predecessors): Ditto.
+ (find_nodes_on_paths): Ditto.
+ (longest_simple_path): Ditto.
+ * flow.c (update_life_info): Ditto.
+ (count_or_remove_death_notes): Ditto.
+ (clear_log_links): Ditto.
+ * modulo-sched.c (generate_reg_moves): Ditto.
+ (find_max_asap): Ditto.
+ (find_max_hv_min_mob): Ditto.
+ (find_max_dv_min_mob): Ditto.
+ * sbitmap.c (sbitmap_first_set_bit): Ditto.
+ * sched-rgn.c (extract_edgelst): Ditto.
+ * tree-into-ssa.c (prepare_names_to_update): Ditto.
+ (dump_update_ssa): Ditto.
+ (ssa_names_to_replace) Ditto.
+ (switch_virtuals_to_full_rewrite): Ditto.
+ (update_ssa): Ditto.
+ * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
+
2005-07-18 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/22483
@@ -140,7 +166,6 @@
statics are not marked as clobbered if the call does not clobber
them.
-
2005-07-16 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-structalias.c (need_to_solve): Need to check for preds,
diff --git a/gcc/bt-load.c b/gcc/bt-load.c
index e8b0225..ae64841 100644
--- a/gcc/bt-load.c
+++ b/gcc/bt-load.c
@@ -701,7 +701,7 @@ link_btr_uses (btr_def *def_array, btr_user *use_array, sbitmap *bb_out,
{
/* Find all the reaching defs for this use. */
sbitmap reaching_defs_of_reg = sbitmap_alloc(max_uid);
- unsigned int uid;
+ unsigned int uid = 0;
sbitmap_iterator sbi;
if (user->use)
diff --git a/gcc/cfganal.c b/gcc/cfganal.c
index 6ea099e..3ed1c59 100644
--- a/gcc/cfganal.c
+++ b/gcc/cfganal.c
@@ -521,7 +521,7 @@ find_edge_index (struct edge_list *edge_list, basic_block pred, basic_block succ
void
flow_nodes_print (const char *str, const sbitmap nodes, FILE *file)
{
- unsigned int node;
+ unsigned int node = 0;
sbitmap_iterator sbi;
if (! nodes)
diff --git a/gcc/combine.c b/gcc/combine.c
index 9d2b28b..2417060 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -641,7 +641,7 @@ combine_instructions (rtx f, unsigned int nregs)
rtx prev;
#endif
int i;
- unsigned int j;
+ unsigned int j = 0;
rtx links, nextlinks;
sbitmap_iterator sbi;
diff --git a/gcc/ddg.c b/gcc/ddg.c
index d098181..6bb3d6c 100644
--- a/gcc/ddg.c
+++ b/gcc/ddg.c
@@ -692,7 +692,7 @@ static ddg_scc_ptr
create_scc (ddg_ptr g, sbitmap nodes)
{
ddg_scc_ptr scc;
- unsigned int u;
+ unsigned int u = 0;
sbitmap_iterator sbi;
scc = (ddg_scc_ptr) xmalloc (sizeof (struct ddg_scc));
@@ -783,7 +783,7 @@ get_node_of_insn (ddg_ptr g, rtx insn)
void
find_successors (sbitmap succ, ddg_ptr g, sbitmap ops)
{
- unsigned int i;
+ unsigned int i = 0;
sbitmap_iterator sbi;
EXECUTE_IF_SET_IN_SBITMAP (ops, 0, i, sbi)
@@ -802,7 +802,7 @@ find_successors (sbitmap succ, ddg_ptr g, sbitmap ops)
void
find_predecessors (sbitmap preds, ddg_ptr g, sbitmap ops)
{
- unsigned int i;
+ unsigned int i = 0;
sbitmap_iterator sbi;
EXECUTE_IF_SET_IN_SBITMAP (ops, 0, i, sbi)
@@ -905,7 +905,7 @@ find_nodes_on_paths (sbitmap result, ddg_ptr g, sbitmap from, sbitmap to)
{
int answer;
int change;
- unsigned int u;
+ unsigned int u = 0;
int num_nodes = g->num_nodes;
sbitmap_iterator sbi;
@@ -1015,7 +1015,7 @@ int
longest_simple_path (struct ddg * g, int src, int dest, sbitmap nodes)
{
int i;
- unsigned int u;
+ unsigned int u = 0;
int change = 1;
int result;
int num_nodes = g->num_nodes;
diff --git a/gcc/flow.c b/gcc/flow.c
index 6a0022d..2ebcdda 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -572,7 +572,7 @@ update_life_info (sbitmap blocks, enum update_life_extent extent,
int prop_flags)
{
regset tmp;
- unsigned i;
+ unsigned i = 0;
int stabilized_prop_flags = prop_flags;
basic_block bb;
@@ -4383,7 +4383,7 @@ int
count_or_remove_death_notes (sbitmap blocks, int kill)
{
int count = 0;
- unsigned int i;
+ unsigned int i = 0;
basic_block bb;
/* This used to be a loop over all the blocks with a membership test
@@ -4489,7 +4489,7 @@ clear_log_links (sbitmap blocks)
}
else
{
- unsigned int i;
+ unsigned int i = 0;
sbitmap_iterator sbi;
EXECUTE_IF_SET_IN_SBITMAP (blocks, 0, i, sbi)
diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c
index 4b3b900..69a9d33 100644
--- a/gcc/modulo-sched.c
+++ b/gcc/modulo-sched.c
@@ -501,7 +501,7 @@ generate_reg_moves (partial_schedule_ptr ps)
for (i_reg_move = 0; i_reg_move < nreg_moves; i_reg_move++)
{
- unsigned int i_use;
+ unsigned int i_use = 0;
rtx new_reg = gen_reg_rtx (GET_MODE (prev_reg));
rtx reg_move = gen_move_insn (new_reg, prev_reg);
sbitmap_iterator sbi;
@@ -1845,7 +1845,7 @@ calculate_order_params (ddg_ptr g, int mii ATTRIBUTE_UNUSED)
static int
find_max_asap (ddg_ptr g, sbitmap nodes)
{
- unsigned int u;
+ unsigned int u = 0;
int max_asap = -1;
int result = -1;
sbitmap_iterator sbi;
@@ -1866,7 +1866,7 @@ find_max_asap (ddg_ptr g, sbitmap nodes)
static int
find_max_hv_min_mob (ddg_ptr g, sbitmap nodes)
{
- unsigned int u;
+ unsigned int u = 0;
int max_hv = -1;
int min_mob = INT_MAX;
int result = -1;
@@ -1895,7 +1895,7 @@ find_max_hv_min_mob (ddg_ptr g, sbitmap nodes)
static int
find_max_dv_min_mob (ddg_ptr g, sbitmap nodes)
{
- unsigned int u;
+ unsigned int u = 0;
int max_dv = -1;
int min_mob = INT_MAX;
int result = -1;
diff --git a/gcc/sbitmap.c b/gcc/sbitmap.c
index 6d76b2d..5ef7f08 100644
--- a/gcc/sbitmap.c
+++ b/gcc/sbitmap.c
@@ -690,7 +690,7 @@ sbitmap_union_of_preds (sbitmap dst, sbitmap *src, int bb)
int
sbitmap_first_set_bit (sbitmap bmap)
{
- unsigned int n;
+ unsigned int n = 0;
sbitmap_iterator sbi;
EXECUTE_IF_SET_IN_SBITMAP (bmap, 0, n, sbi)
diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c
index 3be01cc..1083c5c 100644
--- a/gcc/sched-rgn.c
+++ b/gcc/sched-rgn.c
@@ -353,7 +353,7 @@ is_cfg_nonregular (void)
static void
extract_edgelst (sbitmap set, edgelst *el)
{
- unsigned int i;
+ unsigned int i = 0;
sbitmap_iterator sbi;
/* edgelst table space is reused in each call to extract_edgelst. */
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c
index 02e5876..5885c04 100644
--- a/gcc/tree-into-ssa.c
+++ b/gcc/tree-into-ssa.c
@@ -2031,7 +2031,7 @@ prepare_def_site_for (tree name, bitmap blocks, bool insert_phi_p)
static void
prepare_names_to_update (bitmap blocks, bool insert_phi_p)
{
- unsigned i;
+ unsigned i = 0;
bitmap_iterator bi;
sbitmap_iterator sbi;
@@ -2098,7 +2098,7 @@ debug_names_replaced_by (tree name)
void
dump_update_ssa (FILE *file)
{
- unsigned i;
+ unsigned i = 0;
bitmap_iterator bi;
if (!need_ssa_update_p ())
@@ -2347,7 +2347,7 @@ name_registered_for_update_p (tree n)
bitmap
ssa_names_to_replace (void)
{
- unsigned i;
+ unsigned i = 0;
bitmap ret;
sbitmap_iterator sbi;
@@ -2519,7 +2519,7 @@ switch_virtuals_to_full_rewrite_p (void)
static void
switch_virtuals_to_full_rewrite (void)
{
- unsigned i;
+ unsigned i = 0;
sbitmap_iterator sbi;
if (dump_file)
@@ -2618,7 +2618,7 @@ update_ssa (unsigned update_flags)
bitmap blocks;
basic_block bb, start_bb;
bitmap_iterator bi;
- unsigned i;
+ unsigned i = 0;
sbitmap tmp;
bool insert_phi_p;
sbitmap_iterator sbi;
diff --git a/gcc/tree-vect-transform.c b/gcc/tree-vect-transform.c
index 4d1a3e0..525eef4 100644
--- a/gcc/tree-vect-transform.c
+++ b/gcc/tree-vect-transform.c
@@ -924,7 +924,7 @@ vect_create_epilog_for_reduction (tree vect_def, tree stmt, tree reduction_op,
}
else
{
- enum tree_code shift_code;
+ enum tree_code shift_code = 0;
bool have_whole_vector_shift = true;
enum tree_code code = TREE_CODE (TREE_OPERAND (stmt, 1)); /* CHECKME */
int bit_offset;