re PR middle-end/42206 (ipa-prop.c: use of uninitialised local data)

2009-11-30  Martin Jambor  <mjambor@suse.cz>

	PR middle-end/42206
	* ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.

From-SVN: r154820
This commit is contained in:
Martin Jambor 2009-11-30 16:46:00 +01:00 committed by Martin Jambor
parent eaf180889e
commit 9dd7d977e6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-11-30 Martin Jambor <mjambor@suse.cz>
PR middle-end/42206
* ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.
2009-11-30 Jakub Jelinek <jakub@redhat.com>
* ipa-reference.c (propagate): Only dump bitmaps if computed.

View File

@ -2008,7 +2008,7 @@ ipa_write_node_info (struct output_block *ob, struct cgraph_node *node)
int j;
struct cgraph_edge *e;
struct bitpack_d *bp;
int note_count;
int note_count = 0;
struct ipa_param_call_note *note;
encoder = ob->decl_state->cgraph_node_encoder;