diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/value-prof.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7c19bf0..d2c4260 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> + + * value-prof.c (free_hist): Remove call to memset and the enclosing if + condition. + gcc/ChangeLog: 2017-06-26 Jerome Lambourg <lambourg@adacore.com> diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 56ec9fe..2fed338 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -564,8 +564,6 @@ free_hist (void **slot, void *data ATTRIBUTE_UNUSED) { histogram_value hist = *(histogram_value *) slot; free (hist->hvalue.counters); - if (flag_checking) - memset (hist, 0xab, sizeof (*hist)); free (hist); return 1; } |