summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2016-12-31 07:46:02 -0200
committerAlexandre Oliva <aoliva@redhat.com>2017-01-04 19:48:40 -0200
commit2493aa26c603adccb5d7e062e36933bf28a4af85 (patch)
tree6f795c6d1a1b796fdcf5bb9e3abe4fe32b7eee2a
parenta0194feb70b94992b7061fc601a2131f45294fa3 (diff)
downloadgcc-2493aa26c603adccb5d7e062e36933bf28a4af85.tar.gz
[bootstrap-O1] add initializers to avoid warnings at -O1
Building with the bootstrap-O1 configuration option fails to compile a number of files due to AFAICT false-positive warnings about uses of uninitialized variables. This patch adds dummy initializers to silence them all. for gcc/ChangeLog * multiple_target.c (create_dispatcher_calls): Init e_next. * tree-ssa-loop-split.c (split_loop): Init border. * tree-vect-loop.c (vect_determine_vectorization_factor): Init scalar_type.
-rw-r--r--gcc/multiple_target.c2
-rw-r--r--gcc/tree-ssa-loop-split.c2
-rw-r--r--gcc/tree-vect-loop.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/gcc/multiple_target.c b/gcc/multiple_target.c
index 9848feaddb3..cd7fa192b82 100644
--- a/gcc/multiple_target.c
+++ b/gcc/multiple_target.c
@@ -42,7 +42,7 @@ static void
create_dispatcher_calls (struct cgraph_node *node)
{
cgraph_edge *e;
- cgraph_edge *e_next;
+ cgraph_edge *e_next = NULL;
/* We need to remember NEXT_CALLER as it could be modified in the loop. */
for (e = node->callers; e ;e = (e == NULL) ? e_next : e->next_caller)
diff --git a/gcc/tree-ssa-loop-split.c b/gcc/tree-ssa-loop-split.c
index dac68e6723a..abcbecc12f0 100644
--- a/gcc/tree-ssa-loop-split.c
+++ b/gcc/tree-ssa-loop-split.c
@@ -494,7 +494,7 @@ split_loop (struct loop *loop1, struct tree_niter_desc *niter)
unsigned i;
bool changed = false;
tree guard_iv;
- tree border;
+ tree border = NULL_TREE;
affine_iv iv;
bbs = get_loop_body (loop1);
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 9cca9b717a6..738a2f44fd1 100644
--- a/gcc/tree-vect-loop.c
+++ b/gcc/tree-vect-loop.c
@@ -182,7 +182,7 @@ vect_determine_vectorization_factor (loop_vec_info loop_vinfo)
basic_block *bbs = LOOP_VINFO_BBS (loop_vinfo);
unsigned nbbs = loop->num_nodes;
unsigned int vectorization_factor = 0;
- tree scalar_type;
+ tree scalar_type = NULL_TREE;
gphi *phi;
tree vectype;
unsigned int nunits;