https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120494
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2025-05-30 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- Something like this rtx call = get_call_rtx_from (insn); rtx addr = XEXP (call, 0); tree fndecl = nullptr; if (MEM_P (addr)) { addr = XEXP (addr, 0); if (GET_CODE (addr) == SYMBOL_REF) fndecl = SYMBOL_REF_DECL (addr); } return fndecl;