https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124318

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2026-03-31

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
"We could verify that the function
determined as the likely target matches the call statement
expectations, but for that we would need to stream both types which is
something I decided not to do."

that might be the issue then, we should have ->call_stmt on the cgraph
edges with all the required info, so I'm not sure what "both" refers to.
Likewise the devirt transform could simply leave the call type in place
by transforming

  (*fn)(a, b, c, d);

to

  ((typeof(fn))<devirt-target>)(a, b, c, d);

aka have the gimple_call_fntype unchanged.

I cannot find the code that performs the (speculative) devirtualization
transform to check.  gimple_ic looks OK.

Maybe PTX fails to honor fntype vs. fndecl?

This bug should be in WAITING stage for all the unanswered questions.

Reply via email to