Commit 1f029433 by Jan Hubicka Committed by Jan Hubicka

* profile.c (compute_value_histograms): Fix thinko.

From-SVN: r201401
parent c451f4d6
2013-08-01 Jan Hubicka <jh@suse.cz>
* profile.c (compute_value_histograms): Fix thinko.
2013-08-01 Sofiane Naci <sofiane.naci@arm.com> 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
* config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
......
...@@ -891,7 +891,7 @@ compute_value_histograms (histogram_values values, unsigned cfg_checksum, ...@@ -891,7 +891,7 @@ compute_value_histograms (histogram_values values, unsigned cfg_checksum,
gimple_add_histogram_value (cfun, stmt, hist); gimple_add_histogram_value (cfun, stmt, hist);
hist->hvalue.counters = XNEWVEC (gcov_type, hist->n_counters); hist->hvalue.counters = XNEWVEC (gcov_type, hist->n_counters);
for (j = 0; j < hist->n_counters; j++) for (j = 0; j < hist->n_counters; j++)
if (aact_count[t]) if (aact_count)
hist->hvalue.counters[j] = aact_count[j]; hist->hvalue.counters[j] = aact_count[j];
else else
hist->hvalue.counters[j] = 0; hist->hvalue.counters[j] = 0;
......
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