Commit 32cafd73 by Manfred Hollstein Committed by Manfred Hollstein

tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised warnings.


gcc/ChangeLog:

	* tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
	warnings.
	(int_add_graph_edge): Likewise.
	(collapse_nodes): Likewise.
	(process_unification_queue): Likewise.

gcc/cp/ChangeLog:

	* parser.c (cp_parser_declaration): Fix unitialised warnings.

gcc/fortran/ChangeLog:

	* match.c (gfc_match_symbol): Fix uninitialised warnings.
	* matchexp.c (gfc_match_expr): Likewise.

gcc/java/ChangeLog:

	* verify-impl.c (check_class_constant): Fix uninitialised warnings.
	(check_constant): Likewise.
	(check_wide_constant): Likewise.

From-SVN: r102273
parent ee184c4d
2005-07-22 Manfred Hollstein <mh@suse.com>
* tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
warnings.
(int_add_graph_edge): Likewise.
(collapse_nodes): Likewise.
(process_unification_queue): Likewise.
2005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 2005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
Laurent GUERBY <laurent@guerby.net> Laurent GUERBY <laurent@guerby.net>
......
2005-07-22 Manfred Hollstein <mh@suse.com>
* parser.c (cp_parser_declaration): Fix unitialised warnings.
2005-07-21 Andrew Pinski <pinskia@physics.uc.edu> 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
* class.c (build_base_path): Fix typo. * class.c (build_base_path): Fix typo.
......
...@@ -6919,6 +6919,8 @@ cp_parser_declaration (cp_parser* parser) ...@@ -6919,6 +6919,8 @@ cp_parser_declaration (cp_parser* parser)
if (token1.type != CPP_EOF) if (token1.type != CPP_EOF)
token2 = *cp_lexer_peek_nth_token (parser->lexer, 2); token2 = *cp_lexer_peek_nth_token (parser->lexer, 2);
else
token2.type = token2.keyword = RID_MAX;
/* Get the high-water mark for the DECLARATOR_OBSTACK. */ /* Get the high-water mark for the DECLARATOR_OBSTACK. */
p = obstack_alloc (&declarator_obstack, 0); p = obstack_alloc (&declarator_obstack, 0);
......
2005-07-22 Manfred Hollstein <mh@suse.com>
* match.c (gfc_match_symbol): Fix uninitialised warnings.
* matchexp.c (gfc_match_expr): Likewise.
2005-07-20 Giovanni Bajo <giovannibajo@libero.it> 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
Make CONSTRUCTOR use VEC to store initializers. Make CONSTRUCTOR use VEC to store initializers.
......
...@@ -447,6 +447,8 @@ gfc_match_symbol (gfc_symbol ** matched_symbol, int host_assoc) ...@@ -447,6 +447,8 @@ gfc_match_symbol (gfc_symbol ** matched_symbol, int host_assoc)
else else
*matched_symbol = NULL; *matched_symbol = NULL;
} }
else
*matched_symbol = NULL;
return m; return m;
} }
......
...@@ -852,6 +852,7 @@ gfc_match_expr (gfc_expr ** result) ...@@ -852,6 +852,7 @@ gfc_match_expr (gfc_expr ** result)
for (;;) for (;;)
{ {
uop = NULL;
m = match_defined_operator (&uop); m = match_defined_operator (&uop);
if (m == MATCH_NO) if (m == MATCH_NO)
break; break;
......
2005-07-22 Manfred Hollstein <mh@suse.com>
* verify-impl.c (check_class_constant): Fix uninitialised warnings.
(check_constant): Likewise.
(check_wide_constant): Likewise.
2005-07-20 Giovanni Bajo <giovannibajo@libero.it> 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
Make CONSTRUCTOR use VEC to store initializers. Make CONSTRUCTOR use VEC to store initializers.
......
...@@ -1946,7 +1946,7 @@ check_pool_index (int index) ...@@ -1946,7 +1946,7 @@ check_pool_index (int index)
static type static type
check_class_constant (int index) check_class_constant (int index)
{ {
type t; type t = { 0, 0, 0 };
vfy_constants *pool; vfy_constants *pool;
check_pool_index (index); check_pool_index (index);
...@@ -1963,7 +1963,7 @@ check_class_constant (int index) ...@@ -1963,7 +1963,7 @@ check_class_constant (int index)
static type static type
check_constant (int index) check_constant (int index)
{ {
type t; type t = { 0, 0, 0 };
vfy_constants *pool; vfy_constants *pool;
check_pool_index (index); check_pool_index (index);
...@@ -1983,7 +1983,7 @@ check_constant (int index) ...@@ -1983,7 +1983,7 @@ check_constant (int index)
static type static type
check_wide_constant (int index) check_wide_constant (int index)
{ {
type t; type t = { 0, 0, 0 };
vfy_constants *pool; vfy_constants *pool;
check_pool_index (index); check_pool_index (index);
......
...@@ -897,6 +897,7 @@ merge_graph_nodes (constraint_graph_t graph, unsigned int to, ...@@ -897,6 +897,7 @@ merge_graph_nodes (constraint_graph_t graph, unsigned int to,
add_graph_edge (graph, newe); add_graph_edge (graph, newe);
olde.src = from; olde.src = from;
olde.dest = c->dest; olde.dest = c->dest;
olde.weights = NULL;
temp = get_graph_weights (graph, olde); temp = get_graph_weights (graph, olde);
weights = get_graph_weights (graph, newe); weights = get_graph_weights (graph, newe);
bitmap_ior_into (weights, temp); bitmap_ior_into (weights, temp);
...@@ -917,6 +918,7 @@ merge_graph_nodes (constraint_graph_t graph, unsigned int to, ...@@ -917,6 +918,7 @@ merge_graph_nodes (constraint_graph_t graph, unsigned int to,
add_graph_edge (graph, newe); add_graph_edge (graph, newe);
olde.src = c->dest; olde.src = c->dest;
olde.dest = from; olde.dest = from;
olde.weights = NULL;
temp = get_graph_weights (graph, olde); temp = get_graph_weights (graph, olde);
weights = get_graph_weights (graph, newe); weights = get_graph_weights (graph, newe);
bitmap_ior_into (weights, temp); bitmap_ior_into (weights, temp);
...@@ -942,6 +944,7 @@ int_add_graph_edge (constraint_graph_t graph, unsigned int to, ...@@ -942,6 +944,7 @@ int_add_graph_edge (constraint_graph_t graph, unsigned int to,
struct constraint_edge edge; struct constraint_edge edge;
edge.src = to; edge.src = to;
edge.dest = from; edge.dest = from;
edge.weights = NULL;
r = add_graph_edge (graph, edge); r = add_graph_edge (graph, edge);
r |= !bitmap_bit_p (get_graph_weights (graph, edge), weight); r |= !bitmap_bit_p (get_graph_weights (graph, edge), weight);
bitmap_set_bit (get_graph_weights (graph, edge), weight); bitmap_set_bit (get_graph_weights (graph, edge), weight);
...@@ -1113,6 +1116,7 @@ collapse_nodes (constraint_graph_t graph, unsigned int to, unsigned int from) ...@@ -1113,6 +1116,7 @@ collapse_nodes (constraint_graph_t graph, unsigned int to, unsigned int from)
merge_graph_nodes (graph, to, from); merge_graph_nodes (graph, to, from);
edge.src = to; edge.src = to;
edge.dest = to; edge.dest = to;
edge.weights = NULL;
if (valid_graph_edge (graph, edge)) if (valid_graph_edge (graph, edge))
{ {
bitmap weights = get_graph_weights (graph, edge); bitmap weights = get_graph_weights (graph, edge);
...@@ -1216,6 +1220,7 @@ process_unification_queue (constraint_graph_t graph, struct scc_info *si, ...@@ -1216,6 +1220,7 @@ process_unification_queue (constraint_graph_t graph, struct scc_info *si,
bitmap_clear (tmp); bitmap_clear (tmp);
edge.src = n; edge.src = n;
edge.dest = n; edge.dest = n;
edge.weights = NULL;
if (valid_graph_edge (graph, edge)) if (valid_graph_edge (graph, edge))
{ {
bitmap weights = get_graph_weights (graph, edge); bitmap weights = get_graph_weights (graph, edge);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment