aboutsummaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2018-12-17 14:21:52 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2018-12-17 13:21:52 +0000
commit0418f237b2143b16fd344fedcebafaf73faab571 (patch)
treea51c791c9e0adbc06a8714b2da504ae64680f193 /gcc/profile.c
parentd7c00826362598d636ef1eb92a1b194d46b41473 (diff)
downloadgcc-0418f237b2143b16fd344fedcebafaf73faab571.zip
gcc-0418f237b2143b16fd344fedcebafaf73faab571.tar.gz
gcc-0418f237b2143b16fd344fedcebafaf73faab571.tar.bz2
coverage.c (struct conts_entry): Add n_counts.
* coverage.c (struct conts_entry): Add n_counts. (remap_counts_file): Record number of ocunts. (get_coverage_counts): Verify that counts match. * coverage.h (get_coverage_counts): Update prototype. * profile.c (get_exec_counts. compute_value_histograms): Add n_counts parametrs. From-SVN: r267200
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index ded0958..3c2ac33 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -218,7 +218,7 @@ get_exec_counts (unsigned cfg_checksum, unsigned lineno_checksum)
}
counts = get_coverage_counts (GCOV_COUNTER_ARCS, cfg_checksum,
- lineno_checksum);
+ lineno_checksum, num_edges);
if (!counts)
return NULL;
@@ -780,7 +780,8 @@ compute_value_histograms (histogram_values values, unsigned cfg_checksum,
histogram_counts[t] = get_coverage_counts (COUNTER_FOR_HIST_TYPE (t),
cfg_checksum,
- lineno_checksum);
+ lineno_checksum,
+ n_histogram_counters[t]);
if (histogram_counts[t])
any = 1;
act_count[t] = histogram_counts[t];