summaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog3
-rw-r--r--libgcc/libgcov-driver.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 792031dc9d9..12d4938b4b4 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,5 +1,8 @@
2013-11-18 Jan Hubicka <jh@suse.cz>
+ * libgcov-driver.c (gcov_exit_merge_summary): Fix setting
+ run_accounted.
+
* libgcov-driver.c (get_gcov_dump_complete): Update comments.
(all_prg, crc32): Remove static vars.
(gcov_exit_compute_summary): Rewrite to return crc32; do not clear
diff --git a/libgcc/libgcov-driver.c b/libgcc/libgcov-driver.c
index 9d527cd93e3..763e0244bca 100644
--- a/libgcc/libgcov-driver.c
+++ b/libgcc/libgcov-driver.c
@@ -671,7 +671,6 @@ gcov_exit_merge_summary (const struct gcov_info *gi_ptr, struct gcov_summary *pr
if (!run_accounted)
cs_prg->runs++;
- run_accounted = 1;
if (first)
cs_prg->num = cs_tprg->num;
cs_prg->sum_all += cs_tprg->sum_all;
@@ -719,6 +718,7 @@ gcov_exit_merge_summary (const struct gcov_info *gi_ptr, struct gcov_summary *pr
#endif
}
+ run_accounted = 1;
prg->checksum = crc32;
return 0;