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: tomas
Subject: Re: Emacs' C: static inline considered useless nowadays?
Date: Tue, 18 Oct 2022 19:01:41 +0200

On Tue, Oct 18, 2022 at 06:09:13PM +0300, Eli Zaretskii wrote:
> > 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.

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

Attachment: signature.asc
Description: PGP signature


reply via email to

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