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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to наб from comment #4)
> https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html doesn't seem to
> indicate this change affects return values, either (it only says "passed").

How the ABI defines argument passing usually affects return values as well, but
the docs shouldn't expect users to know that.

> I think static-linkage functions could/should be excluded from this analysis
> as well, since they aren't subject to an ABI, right?

They are if you take the function's address and it escapes from the translation
unit. So we would need some escape analysis not just looking at the linkage.

Reply via email to