From: prathamesh3492 Date: Tue, 27 Jun 2017 06:13:54 +0000 (+0000) Subject: 2017-06-27 Prathamesh Kulkarni X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da2a4c82cf3727ade972d0ec6a90e1f89f463d90;p=thirdparty%2Fgcc.git 2017-06-27 Prathamesh Kulkarni * value-prof.c (free_hist): Remove call to memset and the enclosing if condition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249675 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7c19bf042c0f..d2c4260faf21 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-06-27 Prathamesh Kulkarni + + * value-prof.c (free_hist): Remove call to memset and the enclosing if + condition. + gcc/ChangeLog: 2017-06-26 Jerome Lambourg diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 56ec9fe570bd..2fed338f01a1 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; }