diff options
author | Luo Xiong Hu <luoxhu@linux.ibm.com> | 2019-11-15 08:17:31 +0000 |
---|---|---|
committer | Xiong Hu Luo <luoxhu@gcc.gnu.org> | 2019-11-15 08:17:31 +0000 |
commit | 53dd3bccac6f7f5d4a57875ca5ee2acfe2b2056f (patch) | |
tree | d9f9225b942bf119a926d4999a6429f80d8a87d6 /gcc/tree-profile.c | |
parent | 2aae99f7a4ff1adb7b7b557eb98eccce83a437dc (diff) | |
download | gcc-53dd3bccac6f7f5d4a57875ca5ee2acfe2b2056f.zip gcc-53dd3bccac6f7f5d4a57875ca5ee2acfe2b2056f.tar.gz gcc-53dd3bccac6f7f5d4a57875ca5ee2acfe2b2056f.tar.bz2 |
Fix comments typo
gcc/ChangeLog:
2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
* ipa-comdats.c: Fix comments typo.
* ipa-profile.c: Fix comments typo.
* tree-profile.c (gimple_gen_ic_profiler): Use the new variable
__gcov_indirect_call.counters and __gcov_indirect_call.callee.
(gimple_gen_ic_func_profiler): Likewise.
(pass_ipa_tree_profile::gate): Fix comments typo.
From-SVN: r278278
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r-- | gcc/tree-profile.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c index 6a4e62f..b4435b9 100644 --- a/gcc/tree-profile.c +++ b/gcc/tree-profile.c @@ -73,8 +73,8 @@ static GTY(()) tree ic_tuple_callee_field; /* Do initialization work for the edge profiler. */ /* Add code: - __thread gcov* __gcov_indirect_call_counters; // pointer to actual counter - __thread void* __gcov_indirect_call_callee; // actual callee address + __thread gcov* __gcov_indirect_call.counters; // pointer to actual counter + __thread void* __gcov_indirect_call.callee; // actual callee address __thread int __gcov_function_counter; // time profiler function counter */ static void @@ -381,7 +381,7 @@ gimple_gen_ic_profiler (histogram_value value, unsigned tag) f_1 = foo; __gcov_indirect_call.counters = &__gcov4.main[0]; PROF_9 = f_1; - __gcov_indirect_call_callee = PROF_9; + __gcov_indirect_call.callee = PROF_9; _4 = f_1 (); */ @@ -444,11 +444,11 @@ gimple_gen_ic_func_profiler (void) /* Insert code: - if (__gcov_indirect_call_callee != NULL) + if (__gcov_indirect_call.callee != NULL) __gcov_indirect_call_profiler_v3 (profile_id, ¤t_function_decl); The function __gcov_indirect_call_profiler_v3 is responsible for - resetting __gcov_indirect_call_callee to NULL. */ + resetting __gcov_indirect_call.callee to NULL. */ gimple_stmt_iterator gsi = gsi_start_bb (cond_bb); void0 = build_int_cst (ptr_type_node, 0); @@ -890,7 +890,7 @@ pass_ipa_tree_profile::gate (function *) { /* When profile instrumentation, use or test coverage shall be performed. But for AutoFDO, this there is no instrumentation, thus this pass is - diabled. */ + disabled. */ return (!in_lto_p && !flag_auto_profile && (flag_branch_probabilities || flag_test_coverage || profile_arc_flag)); |