summaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2006-08-17 00:13:24 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2006-08-17 00:13:24 +0000
commit102a5b984a4f89d0d90253b9eabecea6f2bc920d (patch)
treea22acd748f1104bb18682376f0fca37e65bada6c /gcc/profile.c
parent09fc0c2be4ce4d8f170c32b86173ea2699217021 (diff)
downloadgcc-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.c2
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;