libgcov-driver.c (gcov_exit_merge_summary): Fix setting run_accounted.
authorJan Hubicka <jh@suse.cz>
Tue, 19 Nov 2013 00:50:53 +0000 (01:50 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 19 Nov 2013 00:50:53 +0000 (00:50 +0000)
* libgcov-driver.c (gcov_exit_merge_summary): Fix setting
run_accounted.

From-SVN: r204991

libgcc/ChangeLog
libgcc/libgcov-driver.c

index 792031dc9d956e2889a629f22e653c2569773e88..12d4938b4b46daea043b75d56ede8f11809402ea 100644 (file)
@@ -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
index 9d527cd93e31ee29fcfa279b5a2119315408a9db..763e0244bcaafff09f840791c4c89c34f54ca2c2 100644 (file)
@@ -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;