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
This commit is contained in:
Martin Liska 2018-06-07 06:23:16 +02:00 committed by Martin Liska
parent 6c086e8c75
commit 244aebfd6c
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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> 2018-06-07 Martin Liska <mliska@suse.cz>
PR bootstrap/86057 PR bootstrap/86057

View File

@ -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,
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;