]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove __gcov_merge_delta (PR bootstrap/77749)
authorMartin Liska <mliska@suse.cz>
Tue, 27 Sep 2016 10:04:39 +0000 (12:04 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 27 Sep 2016 10:04:39 +0000 (10:04 +0000)
PR bootstrap/77749
* gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
PR bootstrap/77749
* Makefile.in: Remove _gcov_merge_delta.
* libgcov-merge.c (void __gcov_merge_delta): Remove.
* libgcov-util.c (__gcov_delta_counter_op): Remove.
* libgcov.h: Remove declaration of __gcov_merge_delta.

From-SVN: r240524

gcc/ChangeLog
gcc/gcov-counter.def
libgcc/ChangeLog
libgcc/Makefile.in
libgcc/libgcov-merge.c
libgcc/libgcov-util.c
libgcc/libgcov.h

index 1a2d42fe96fbe17b4277232e9312631d135ad144..66f0daede19694fbed233d317da2e1b8619336fc 100644 (file)
@@ -1,3 +1,8 @@
+2016-09-27  Martin Liska  <mliska@suse.cz>
+
+       PR bootstrap/77749
+       * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
+
 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
 
        * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
index 64c26739d5d3ee32890cffe6dc6c1619887362e1..55d3f0c12a7e7c181691fcbcc7baa45c8a2af2b9 100644 (file)
@@ -38,9 +38,6 @@ DEF_GCOV_COUNTER(GCOV_COUNTER_V_POW2, "pow2", _add)
 /* The most common value of expression.  */
 DEF_GCOV_COUNTER(GCOV_COUNTER_V_SINGLE, "single", _single)
 
-/* The most common difference between consecutive values of expression.  */
-DEF_GCOV_COUNTER(GCOV_COUNTER_V_DELTA, "delta", _delta)
-
 /* The most common indirect address.  */
 DEF_GCOV_COUNTER(GCOV_COUNTER_V_INDIR, "indirect_call", _single)
 
index 1627278679644a1fdbc8362fcace16deda4838b2..1b4fd93f4ce2f96bf4a299e45a0eb3f33c194622 100644 (file)
@@ -1,3 +1,11 @@
+2016-09-27  Martin Liska  <mliska@suse.cz>
+
+       PR bootstrap/77749
+       * Makefile.in: Remove _gcov_merge_delta.
+       * libgcov-merge.c (void __gcov_merge_delta): Remove.
+       * libgcov-util.c (__gcov_delta_counter_op): Remove.
+       * libgcov.h: Remove declaration of __gcov_merge_delta.
+
 2016-09-21  Eric Botcazou  <ebotcazou@adacore.com>
 
        * configure.ac: Do not create links, only substitute the filenames.
index ff3c77fb6b7fad1a07cd2cb6c6028b8247035c72..873cad04b78741b0cf8d76ad72f9c77e28bf47f7 100644 (file)
@@ -877,7 +877,7 @@ include $(iterator)
 
 # Build libgcov components.
 
-LIBGCOV_MERGE = _gcov_merge_add _gcov_merge_single _gcov_merge_delta   \
+LIBGCOV_MERGE = _gcov_merge_add _gcov_merge_single                     \
        _gcov_merge_ior _gcov_merge_time_profile _gcov_merge_icall_topn
 LIBGCOV_PROFILER = _gcov_interval_profiler                             \
        _gcov_interval_profiler_atomic                                  \
index 3a8bb2c7dffe6516ca779efa8d25e2932fee085a..fd2f07428dbe1d041b6bbbf582f3446f7e1c6487 100644 (file)
@@ -38,11 +38,6 @@ void __gcov_merge_single (gcov_type *counters  __attribute__ ((unused)),
                           unsigned n_counters __attribute__ ((unused))) {}
 #endif
 
-#ifdef L_gcov_merge_delta
-void __gcov_merge_delta (gcov_type *counters  __attribute__ ((unused)),
-                         unsigned n_counters __attribute__ ((unused))) {}
-#endif
-
 #else
 
 #ifdef L_gcov_merge_add
@@ -127,46 +122,6 @@ __gcov_merge_single (gcov_type *counters, unsigned n_counters)
 }
 #endif /* L_gcov_merge_single */
 
-#ifdef L_gcov_merge_delta
-/* The profile merging function for choosing the most common
-   difference between two consecutive evaluations of the value.  It is
-   given an array COUNTERS of N_COUNTERS old counters and it reads the
-   same number of counters from the gcov file.  The counters are split
-   into 4-tuples where the members of the tuple have meanings:
-
-   -- the last value of the measured entity
-   -- the stored candidate on the most common difference
-   -- counter
-   -- total number of evaluations of the value  */
-void
-__gcov_merge_delta (gcov_type *counters, unsigned n_counters)
-{
-  unsigned i, n_measures;
-  gcov_type value, counter, all;
-
-  gcc_assert (!(n_counters % 4));
-  n_measures = n_counters / 4;
-  for (i = 0; i < n_measures; i++, counters += 4)
-    {
-      /* last = */ gcov_get_counter ();
-      value = gcov_get_counter_target ();
-      counter = gcov_get_counter ();
-      all = gcov_get_counter ();
-
-      if (counters[1] == value)
-        counters[2] += counter;
-      else if (counter > counters[2])
-        {
-          counters[1] = value;
-          counters[2] = counter - counters[2];
-        }
-      else
-        counters[2] -= counter;
-      counters[3] += all;
-    }
-}
-#endif /* L_gcov_merge_delta */
-
 #ifdef L_gcov_merge_icall_topn
 /* The profile merging function used for merging indirect call counts
    This function is given array COUNTERS of N_COUNTERS old counters and it
index 24ee50ec4ab78f1f8df09ac704de683bb1a9e4b8..b1d966cc22da4bc8febcbc2ae3539b5fc4f9f3d4 100644 (file)
@@ -720,23 +720,6 @@ __gcov_time_profile_counter_op (gcov_type *counters ATTRIBUTE_UNUSED,
   /* Do nothing.  */
 }
 
-/* Performaing FN upon delta counters.  */
-
-static void
-__gcov_delta_counter_op (gcov_type *counters, unsigned n_counters,
-                         counter_op_fn fn, void *data1, void *data2)
-{
-  unsigned i, n_measures;
-
-  gcc_assert (!(n_counters % 4));
-  n_measures = n_counters / 4;
-  for (i = 0; i < n_measures; i++, counters += 4)
-    {
-      counters[2] = fn (counters[2], data1, data2);
-      counters[3] = fn (counters[3], data1, data2);
-    }
-}
-
 /* Performing FN upon single counters.  */
 
 static void
index 25147de2be739b9ced5596699fa7b2a9da84b4b7..725ef0a6283fdfaa19798fdc8b5cc7694b0cf73b 100644 (file)
@@ -126,7 +126,6 @@ typedef unsigned gcov_position_t;
 #define L_gcov 1
 #define L_gcov_merge_add 1
 #define L_gcov_merge_single 1
-#define L_gcov_merge_delta 1
 #define L_gcov_merge_ior 1
 #define L_gcov_merge_time_profile 1
 #define L_gcov_merge_icall_topn 1
@@ -256,10 +255,6 @@ extern void __gcov_merge_time_profile (gcov_type *, unsigned) ATTRIBUTE_HIDDEN;
 /* The merge function to choose the most common value.  */
 extern void __gcov_merge_single (gcov_type *, unsigned) ATTRIBUTE_HIDDEN;
 
-/* The merge function to choose the most common difference between
-   consecutive values.  */
-extern void __gcov_merge_delta (gcov_type *, unsigned) ATTRIBUTE_HIDDEN;
-
 /* The merge function that just ors the counters together.  */
 extern void __gcov_merge_ior (gcov_type *, unsigned) ATTRIBUTE_HIDDEN;