Bump version of __gcov_indirect_call_profiler function as there was ABI change.
authorMartin Liska <mliska@suse.cz>
Fri, 18 Jan 2019 11:32:53 +0000 (12:32 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 18 Jan 2019 11:32:53 +0000 (11:32 +0000)
2019-01-18  Martin Liska  <mliska@suse.cz>

* params.def: Fix comment.
* tree-profile.c (gimple_init_gcov_profiler): Bump function
name.
(gimple_gen_ic_func_profiler): Likewise.
2019-01-18  Martin Liska  <mliska@suse.cz>

* gcc.dg/no_profile_instrument_function-attr-1.c: Update
expected function name.
2019-01-18  Martin Liska  <mliska@suse.cz>

* libgcov-profiler.c (__gcov_indirect_call_profiler_v2): Rename
to ...
(__gcov_indirect_call_profiler_v3): ... this.
* libgcov.h (__gcov_indirect_call_profiler_v2): Likewise.
(__gcov_indirect_call_profiler_v3): Likewise.
* Makefile.in: Bump function name.

From-SVN: r268071

gcc/ChangeLog
gcc/params.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c
gcc/tree-profile.c
libgcc/ChangeLog
libgcc/Makefile.in
libgcc/libgcov-profiler.c
libgcc/libgcov.h

index 6dbff4b08213540f20efc31a9391c9f372ad10cd..80437a01c0b05f752cf244a3d1174614c6ae0e9e 100644 (file)
@@ -1,3 +1,10 @@
+2019-01-18  Martin Liska  <mliska@suse.cz>
+
+       * params.def: Fix comment.
+       * tree-profile.c (gimple_init_gcov_profiler): Bump function
+       name.
+       (gimple_gen_ic_func_profiler): Likewise.
+
 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
index 1a2af2c80bbdb74554a79e90a777587abcb857fe..e5553af63c43faf508583e72e5257cfd65e5563b 100644 (file)
@@ -995,7 +995,7 @@ DEFPARAM (PARAM_PROFILE_FUNC_INTERNAL_ID,
 
 /* When the parameter is 1, track the most frequent N target
    addresses in indirect-call profile. This disables
-   indirect_call_profiler_v2 which tracks single target.  */
+   indirect_call_profiler_v3 which tracks single target.  */
 DEFPARAM (PARAM_INDIR_CALL_TOPN_PROFILE,
          "indir-call-topn-profile",
          "Track top N target addresses in indirect-call profile.",
index 400e98348305785fd39a57598be57d786280f577..0b9bb75fe5ce6e4b6c3780d6568ee9b48036d61a 100644 (file)
@@ -1,3 +1,8 @@
+2019-01-18  Martin Liska  <mliska@suse.cz>
+
+       * gcc.dg/no_profile_instrument_function-attr-1.c: Update
+       expected function name.
+
 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/86214
index 0f04fb1eedc3577b1ba4ed80a7678c4ebcea1f43..41d745532fa90154107a4f7e683b18487beca732 100644 (file)
@@ -19,6 +19,6 @@ int main ()
 }
 
 /* { dg-final { scan-tree-dump-times "__gcov0\\.main.* = PROF_edge_counter" 1 "optimized"} } */
-/* { dg-final { scan-tree-dump-times "__gcov_indirect_call_profiler_v2" 1 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "__gcov_indirect_call_profiler_v3" 1 "optimized" } } */
 /* { dg-final { scan-tree-dump-times "__gcov_time_profiler_counter = " 1 "optimized" } } */
 /* { dg-final { scan-tree-dump-times "__gcov_init" 1 "optimized" } } */
index 5860e7c3f19789108f684f1df7cf6cc671178687..1c3034aac10c56bd69838da33670f83ca674580b 100644 (file)
@@ -186,7 +186,7 @@ gimple_init_gcov_profiler (void)
                                          gcov_type_node,
                                          ptr_type_node,
                                          NULL_TREE);
-      profiler_fn_name = "__gcov_indirect_call_profiler_v2";
+      profiler_fn_name = "__gcov_indirect_call_profiler_v3";
       if (PARAM_VALUE (PARAM_INDIR_CALL_TOPN_PROFILE))
        profiler_fn_name = "__gcov_indirect_call_topn_profiler";
 
@@ -459,9 +459,9 @@ gimple_gen_ic_func_profiler (void)
   /* Insert code:
 
      if (__gcov_indirect_call_callee != NULL)
-       __gcov_indirect_call_profiler_v2 (profile_id, &current_function_decl);
+       __gcov_indirect_call_profiler_v3 (profile_id, &current_function_decl);
 
-     The function __gcov_indirect_call_profiler_v2 is responsible for
+     The function __gcov_indirect_call_profiler_v3 is responsible for
      resetting __gcov_indirect_call_callee to NULL.  */
 
   gimple_stmt_iterator gsi = gsi_start_bb (cond_bb);
index 94a8623958f0bfea9dbd09ea4f0c31844be5dfd1..9d157c2afc30d5fb474fef758d9cfb678d995e4e 100644 (file)
@@ -1,3 +1,12 @@
+2019-01-18  Martin Liska  <mliska@suse.cz>
+
+       * libgcov-profiler.c (__gcov_indirect_call_profiler_v2): Rename
+       to ...
+       (__gcov_indirect_call_profiler_v3): ... this.
+       * libgcov.h (__gcov_indirect_call_profiler_v2): Likewise.
+       (__gcov_indirect_call_profiler_v3): Likewise.
+       * Makefile.in: Bump function name.
+
 2019-01-18  Martin Liska  <mliska@suse.cz>
 
        * libgcov-driver.c (GCOV_PROF_PREFIX): Define.
index 8b0f0cf042bb3ac164b0da59db64f53e5e842f33..ea390a5bbeae77aa60ecb0ff5540021c32f2f968 100644 (file)
@@ -899,7 +899,7 @@ LIBGCOV_PROFILER = _gcov_interval_profiler                          \
        _gcov_average_profiler_atomic                                   \
        _gcov_ior_profiler                                              \
        _gcov_ior_profiler_atomic                                       \
-       _gcov_indirect_call_profiler_v2                                 \
+       _gcov_indirect_call_profiler_v3                                 \
        _gcov_time_profiler                                             \
        _gcov_indirect_call_topn_profiler
 LIBGCOV_INTERFACE = _gcov_dump _gcov_flush _gcov_fork                  \
index 4cacf894174fb8d5c2702abfc2760a08a9dbde59..7116330252bc226a9b97d455ffb26c8cf9cdca61 100644 (file)
@@ -296,7 +296,7 @@ __gcov_indirect_call_topn_profiler (gcov_type value, void* cur_func)
 }
 #endif
 
-#ifdef L_gcov_indirect_call_profiler_v2
+#ifdef L_gcov_indirect_call_profiler_v3
 
 /* These two variables are used to actually track caller and callee.  Keep
    them in TLS memory so races are not common (they are written to often).
@@ -318,7 +318,7 @@ struct indirect_call_tuple __gcov_indirect_call;
 
 /* Tries to determine the most common value among its inputs. */
 void
-__gcov_indirect_call_profiler_v2 (gcov_type value, void* cur_func)
+__gcov_indirect_call_profiler_v3 (gcov_type value, void* cur_func)
 {
   /* If the C++ virtual tables contain function descriptors then one
      function may have multiple descriptors and we need to dereference
index be5682fd8b2c881257120fb174f206947b9d2282..993db8fb057cfcb3d1a66890d98f44d7baefa55a 100644 (file)
@@ -278,7 +278,7 @@ extern void __gcov_pow2_profiler (gcov_type *, gcov_type);
 extern void __gcov_pow2_profiler_atomic (gcov_type *, gcov_type);
 extern void __gcov_one_value_profiler (gcov_type *, gcov_type);
 extern void __gcov_one_value_profiler_atomic (gcov_type *, gcov_type);
-extern void __gcov_indirect_call_profiler_v2 (gcov_type, void *);
+extern void __gcov_indirect_call_profiler_v3 (gcov_type, void *);
 extern void __gcov_time_profiler (gcov_type *);
 extern void __gcov_time_profiler_atomic (gcov_type *);
 extern void __gcov_average_profiler (gcov_type *, gcov_type);