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/profile.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/profile.c')
-rw-r--r-- | gcc/profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index 4e2213a6e2d..9b493095684 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -220,7 +220,6 @@ instrument_values (histogram_values values) gcc_unreachable (); } } - VEC_free (histogram_value, heap, values); } @@ -1049,6 +1048,7 @@ branch_prob (void) free_aux_for_edges (); + VEC_free (histogram_value, heap, values); free_edge_list (el); if (flag_branch_probabilities) profile_status = PROFILE_READ; |