aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/profile.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2df891d..a1bcab9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2003-04-11 Geoffrey Keating <geoffk@apple.com>
+ * profile.c (read_counts_file): Initialise 'checksum'.
+
* emit-rtl.c (gen_rtx): Really correct typo.
PR c++/9393
diff --git a/gcc/profile.c b/gcc/profile.c
index 07f7a72..5cbdd00 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -274,7 +274,7 @@ static void
read_counts_file (const char *name)
{
char *function_name_buffer = NULL;
- unsigned version, ix, checksum;
+ unsigned version, ix, checksum = -1;
counts_entry_t *summaried = NULL;
unsigned seen_summary = 0;