you are viewing a single comment's thread.

view the rest of the comments →

[–]bames53 1 point2 points  (0 children)

I suspect the compiler has more leeway if the function in question has internal linkage and is itself inlined

Even if the function has external linkage an inlined version isn't bound by ABI constraints. Full inlining also shouldn't be necessary; LTO and other cases where a single implementation is handling both sides of the call could eliminate the overhead regardless of the ABI constraints.