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

--- Comment #26 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #25)
> Btw, I'd rather go the opposite and make the testcase at hand always invalid
> and diagnosed which means diagnose taking the address of always-inline
> declared functions and never emit an out-of-line body for them.

That would need an exception at least for gnu extern inline always_inline
functions,
because the way they are used in glibc requires &open etc. to be valid (and use
then as fallback the out of line open).
But with the exception we can still see those indirect uses optimized later
into direct calls.

Reply via email to