diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-17 00:13:24 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-17 00:13:24 +0000 |
commit | 102a5b984a4f89d0d90253b9eabecea6f2bc920d (patch) | |
tree | a22acd748f1104bb18682376f0fca37e65bada6c /gcc/value-prof.c | |
parent | 09fc0c2be4ce4d8f170c32b86173ea2699217021 (diff) | |
download | gcc-102a5b984a4f89d0d90253b9eabecea6f2bc920d.tar.gz |
PR gcov/profile/26570
* value-prof.c (static_values): Removed.
(tree_find_values_to_profile): Do not set static_values.
(find_values_to_profile): Do not free static_values.
* profile.c (instrument_values): Do not free the values.
(branch_prob): Free the values.
* gcc.dg/pr26570.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116197 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c index e273a40f9c9..6c64e3cbe27 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -46,12 +46,6 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA static struct value_prof_hooks *value_prof_hooks; -/* This is the vector of histograms. Created in find_values_to_profile. - During profile generation, freed by instrument_values. - During profile use, freed by value_profile_transformations. */ - -static histogram_values static_values = NULL; - /* In this file value profile based optimizations are placed. Currently the following optimizations are implemented (for more detailed descriptions see comments at value_profile_transformations): @@ -797,7 +791,6 @@ tree_find_values_to_profile (histogram_values *values) FOR_EACH_BB (bb) for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi)) tree_values_to_profile (bsi_stmt (bsi), values); - static_values = *values; for (i = 0; VEC_iterate (histogram_value, *values, i, hist); i++) { @@ -875,9 +868,7 @@ find_values_to_profile (histogram_values *values) bool value_profile_transformations (void) { - bool retval = (value_prof_hooks->value_profile_transformations) (); - VEC_free (histogram_value, heap, static_values); - return retval; + return (value_prof_hooks->value_profile_transformations) (); } |