diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c index 6e96fa9..42b780f 100644 --- a/gcc/tree-profile.c +++ b/gcc/tree-profile.c @@ -188,8 +188,8 @@ gimple_init_edge_profiler (void) profiler_fn_name = "__gcov_indirect_call_profiler_v2"; if (PARAM_VALUE (PARAM_INDIR_CALL_TOPN_PROFILE)) profiler_fn_name = "__gcov_indirect_call_topn_profiler"; - if (flag_profile_update == PROFILE_UPDATE_ATOMIC) - profiler_fn_name = "__gcov_indirect_call_profiler_v2_atomic"; +// if (flag_profile_update == PROFILE_UPDATE_ATOMIC) +// profiler_fn_name = "__gcov_indirect_call_profiler_v2_atomic"; tree_indirect_call_profiler_fn = build_fn_decl (profiler_fn_name, ic_profiler_fn_type); diff --git a/libgcc/libgcov-profiler.c b/libgcc/libgcov-profiler.c index c1e287d..d43932e 100644 --- a/libgcc/libgcov-profiler.c +++ b/libgcc/libgcov-profiler.c @@ -70,6 +70,8 @@ __gcov_pow2_profiler (gcov_type *counters, gcov_type value) In any case, COUNTERS[2] is incremented. */ +static int counter = 0; + static inline void __gcov_one_value_profiler_body (gcov_type *counters, gcov_type value) { @@ -77,6 +79,7 @@ __gcov_one_value_profiler_body (gcov_type *counters, gcov_type value) counters[1]++; else if (counters[1] == 0) { + fprintf (stderr, "new counter[1] value, N:%d\n", counter++); counters[1] = 1; counters[0] = value; }