https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90513
--- Comment #16 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > you mean ,the target-independent code in the C++ front end will generate a > less efficient heavyweight thunk that calls function instead of jumping to > it ? The cgraphunit code (cgraph_node::expand_thunk). I agree that it's suboptimal but this can often be recouped by means of inlining.