On Tue, Oct 18, 2022 at 06:09:13PM +0300, Eli Zaretskii wrote: > > From: Stefan Monnier > > Cc: Matt Armstrong , emacs-devel@gnu.org > > Date: Tue, 18 Oct 2022 09:32:32 -0400 > > > > > Never mind that; it's a historic accident. Just use 'static' and let > > > the compiler decide when to inline. > > > > Since both `gcc` and `clang` obey the `inline` attribute in that case > > for options like `-Og`, it can still be a good idea to keep them in > > those places where we think it makes a significant difference. > > Experience shows that we have no idea where it makes a difference. In the case of gcc, it's at least documented [1] (no idea about clang, but I'd assume it's documented as well). For proprietary compilers... we don't talk about proprietary compilers, do we? ;-) Cheers -- t