aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2009-11-30 16:46:00 +0100
committerMartin Jambor <jamborm@gcc.gnu.org>2009-11-30 16:46:00 +0100
commit9dd7d977e60c8d6788a67f80f316ef12b8ff4562 (patch)
tree23622e8909e121a67ddba9ea6387cbc543a7abc6 /gcc/ipa-prop.c
parenteaf180889e63584942ec0d8da8707b964de8fe35 (diff)
downloadgcc-9dd7d977e60c8d6788a67f80f316ef12b8ff4562.zip
gcc-9dd7d977e60c8d6788a67f80f316ef12b8ff4562.tar.gz
gcc-9dd7d977e60c8d6788a67f80f316ef12b8ff4562.tar.bz2
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
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r--gcc/ipa-prop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 6a018f4..78269d8 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;