https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109304
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:d0b961b802dd7d9d555ff4515835a479329326e9 commit r13-6995-gd0b961b802dd7d9d555ff4515835a479329326e9 Author: Richard Biener <rguent...@suse.de> Date: Tue Mar 28 08:06:12 2023 +0000 tree-optimization/109304 - properly handle instrumented aliases When adjusting calls to reflect instrumentation we failed to handle calls to aliases since they appear to have no body. Instead resort to symtab node availability. The patch also avoids touching internal function calls in a more obvious way (builtins might have a body available). profiledbootstrap & regtest running on x86_64-unknown-linux-gnu. Honza - does this look OK? PR tree-optimization/109304 * tree-profile.cc (tree_profiling): Use symtab node availability to decide whether to skip adjusting calls. Do not adjust calls to internal functions. * gcc.dg/pr109304.c: New testcase.