From: Prathamesh Kulkarni Date: Tue, 27 Jun 2017 06:13:54 +0000 (+0000) Subject: value-prof.c (free_hist): Remove call to memset and the enclosing if condition. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d25c0cc1a537adf0dbbacad88f2f4dc20e9edd26;p=gcc.git value-prof.c (free_hist): Remove call to memset and the enclosing if condition. 2017-06-27 Prathamesh Kulkarni * value-prof.c (free_hist): Remove call to memset and the enclosing if condition. From-SVN: r249675 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7c19bf042c0..d2c4260faf2 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 56ec9fe570b..2fed338f01a 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; }