summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-30 15:46:00 +0000
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-30 15:46:00 +0000
commit48deb1a5591bda1400873c2c2db92912da8491e4 (patch)
tree23622e8909e121a67ddba9ea6387cbc543a7abc6
parent15b80ab4828571fb026cf487d318fbcc94c734e5 (diff)
downloadgcc-48deb1a5591bda1400873c2c2db92912da8491e4.tar.gz
2009-11-30 Martin Jambor <mjambor@suse.cz>
PR middle-end/42206 * ipa-prop.c (ipa_write_node_info): Initialize note_count to zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154820 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-prop.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 884d015104f..0995c52e838 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 6a018f456ea..78269d82537 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -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;