diff options
author | hongtao.liu <hongtao.liu@intel.com> | 2025-01-14 01:13:22 +0100 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2025-05-07 01:11:36 -0700 |
commit | ae987baeb5fb70877fd007db80b77e374f676c76 (patch) | |
tree | 2577987c56914ee7a78824a0efa6c40c916f2516 /gcc | |
parent | 625b805544101ae90fbe789a5eeba44cd14e89fb (diff) | |
download | gcc-ae987baeb5fb70877fd007db80b77e374f676c76.zip gcc-ae987baeb5fb70877fd007db80b77e374f676c76.tar.gz gcc-ae987baeb5fb70877fd007db80b77e374f676c76.tar.bz2 |
Fix name mismatch for fortran.
Function name in afdo_string_table is step3d_t_tile.
but DECL_ASSEMBLER_NAME (edge->callee->decl))) gets
__step3d_t_mod_MOD_step3d_t_tile, Looks like the prefix is not in the
debug string table.
The patch uses
afdo_string_table->get_index_by_decl (edge->callee->decl) instead.
gcc/ChangeLog:
PR gcov-profile/118508
* auto-profile.cc
(autofdo_source_profile::get_callsite_total_count): Fix name
mismatch for fortran.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/auto-profile.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/auto-profile.cc b/gcc/auto-profile.cc index 7e0e8c6..9966d93 100644 --- a/gcc/auto-profile.cc +++ b/gcc/auto-profile.cc @@ -848,8 +848,8 @@ autofdo_source_profile::get_callsite_total_count ( function_instance *s = get_function_instance_by_inline_stack (stack); if (s == NULL - || afdo_string_table->get_index (IDENTIFIER_POINTER ( - DECL_ASSEMBLER_NAME (edge->callee->decl))) != s->name ()) + ||(afdo_string_table->get_index_by_decl (edge->callee->decl) + != s->name())) return 0; return s->total_count (); |