Commit 244aebfd by Martin Liska Committed by Martin Liska

Fix compilation of libgcov with GCOV_LOCKED=0.

2018-06-07  Martin Liska  <mliska@suse.cz>

	* libgcov-driver.c: Rename cs_all to all and assign it from
        all_prg.

From-SVN: r261261
parent 6c086e8c
2018-06-07 Martin Liska <mliska@suse.cz> 2018-06-07 Martin Liska <mliska@suse.cz>
* libgcov-driver.c: Rename cs_all to all and assign it from
all_prg.
2018-06-07 Martin Liska <mliska@suse.cz>
PR bootstrap/86057 PR bootstrap/86057
* libgcov-driver-system.c (replace_filename_variables): Use * libgcov-driver-system.c (replace_filename_variables): Use
memcpy instead of mempcpy. memcpy instead of mempcpy.
......
...@@ -573,7 +573,7 @@ merge_summary (const char *filename __attribute__ ((unused)), int run_counted, ...@@ -573,7 +573,7 @@ merge_summary (const char *filename __attribute__ ((unused)), int run_counted,
{ {
#if !GCOV_LOCKED #if !GCOV_LOCKED
/* summary for all instances of program. */ /* summary for all instances of program. */
struct gcov_summary *cs_all; struct gcov_summary *all;
#endif #endif
/* Merge the summary. */ /* Merge the summary. */
...@@ -593,7 +593,7 @@ merge_summary (const char *filename __attribute__ ((unused)), int run_counted, ...@@ -593,7 +593,7 @@ merge_summary (const char *filename __attribute__ ((unused)), int run_counted,
else else
gcov_histogram_merge (prg->histogram, this_prg->histogram); gcov_histogram_merge (prg->histogram, this_prg->histogram);
#if !GCOV_LOCKED #if !GCOV_LOCKED
all = &all_prg->ctrs[t_ix]; all = all_prg;
if (!all->runs && prg->runs) if (!all->runs && prg->runs)
{ {
all->num = prg->num; all->num = prg->num;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment