]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix name mismatch for fortran.
authorhongtao.liu <hongtao.liu@intel.com>
Tue, 14 Jan 2025 00:13:22 +0000 (01:13 +0100)
committerliuhongt <hongtao.liu@intel.com>
Wed, 7 May 2025 08:11:36 +0000 (01:11 -0700)
commitae987baeb5fb70877fd007db80b77e374f676c76
tree2577987c56914ee7a78824a0efa6c40c916f2516
parent625b805544101ae90fbe789a5eeba44cd14e89fb
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.
gcc/auto-profile.cc