value-prof.c (free_hist): Remove call to memset and the enclosing if condition.
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Tue, 27 Jun 2017 06:13:54 +0000 (06:13 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Tue, 27 Jun 2017 06:13:54 +0000 (06:13 +0000)
2017-06-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

* value-prof.c (free_hist): Remove call to memset and the enclosing if
condition.

From-SVN: r249675

gcc/ChangeLog
gcc/value-prof.c

index 7c19bf042c0f6306420a40ae788b7f724a42dfbb..d2c4260faf2108ba052256f10ab8d56aa5cfa55f 100644 (file)
@@ -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>
index 56ec9fe570bd21c887a9be63efed683f9008acf6..2fed338f01a1ec699ee09733b154879fd14d3f34 100644 (file)
@@ -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;
 }