From: Jan Hubicka Date: Thu, 1 Aug 2013 10:03:55 +0000 (+0200) Subject: * profile.c (compute_value_histograms): Fix thinko. X-Git-Tag: releases/gcc-4.9.0~4752 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f0294333543d86e9507d847060d82376cb58297;p=thirdparty%2Fgcc.git * profile.c (compute_value_histograms): Fix thinko. From-SVN: r201401 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 592bd3135487..cae1be0b0555 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-08-01 Jan Hubicka + + * profile.c (compute_value_histograms): Fix thinko. + 2013-08-01 Sofiane Naci * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add diff --git a/gcc/profile.c b/gcc/profile.c index 4ad7c9f3ab1e..c469df56dba7 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -891,7 +891,7 @@ compute_value_histograms (histogram_values values, unsigned cfg_checksum, gimple_add_histogram_value (cfun, stmt, hist); hist->hvalue.counters = XNEWVEC (gcov_type, hist->n_counters); for (j = 0; j < hist->n_counters; j++) - if (aact_count[t]) + if (aact_count) hist->hvalue.counters[j] = aact_count[j]; else hist->hvalue.counters[j] = 0;