emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs' C: static inline considered useless nowadays?


From: Eli Zaretskii
Subject: Re: Emacs' C: static inline considered useless nowadays?
Date: Tue, 18 Oct 2022 18:09:13 +0300

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Matt Armstrong <matt@rfc20.org>,  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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]